From 590268d3d8bd2b4bdcc89f3a10145d1e2e4e9484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Wed, 22 Aug 2012 18:42:57 +0000 Subject: [PATCH] [INCLUDE/C++] - Add fake iostream headers to fix MSVC compilation - hack numerical_limits::infinity() implementation until we have a real C++ library Oddly, empty headers seem to be enough for now svn path=/trunk/; revision=57136 --- reactos/include/c++/fstream | 0 reactos/include/c++/ios | 0 reactos/include/c++/iostream | 0 reactos/include/c++/istream | 0 reactos/include/c++/limits | 6 +++++- reactos/include/c++/sstream | 0 6 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 reactos/include/c++/fstream create mode 100644 reactos/include/c++/ios create mode 100644 reactos/include/c++/iostream create mode 100644 reactos/include/c++/istream create mode 100644 reactos/include/c++/sstream diff --git a/reactos/include/c++/fstream b/reactos/include/c++/fstream new file mode 100644 index 00000000000..e69de29bb2d diff --git a/reactos/include/c++/ios b/reactos/include/c++/ios new file mode 100644 index 00000000000..e69de29bb2d diff --git a/reactos/include/c++/iostream b/reactos/include/c++/iostream new file mode 100644 index 00000000000..e69de29bb2d diff --git a/reactos/include/c++/istream b/reactos/include/c++/istream new file mode 100644 index 00000000000..e69de29bb2d diff --git a/reactos/include/c++/limits b/reactos/include/c++/limits index 93113c6a044..7137b791501 100644 --- a/reactos/include/c++/limits +++ b/reactos/include/c++/limits @@ -938,7 +938,11 @@ namespace std // infinity static const bool has_infinity = true; static float infinity( ) throw( ) - {return _FInf._Float;} + //{return _FInf._Float;} + { + static const unsigned __inf_bytes = 0x7f800000; + return *(float*)&__inf_bytes; + } // Denormalization static const float_denorm_style has_denorm = denorm_present; diff --git a/reactos/include/c++/sstream b/reactos/include/c++/sstream new file mode 100644 index 00000000000..e69de29bb2d