[INCLUDE/CRT]
authorJérôme Gardou <jerome.gardou@reactos.org>
Fri, 27 Dec 2013 16:25:52 +0000 (16:25 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Fri, 27 Dec 2013 16:25:52 +0000 (16:25 +0000)
 - add intrin.h which redirects to compiler specific version
 - Do not add a global include directory for two headers
 - Update float.h accordingly

svn path=/trunk/; revision=61450

reactos/CMakeLists.txt
reactos/include/crt/float.h
reactos/include/crt/intrin.h [new file with mode: 0644]

index 16c2f6d..0bb4e80 100644 (file)
@@ -199,12 +199,6 @@ else()
         include_directories(${REACTOS_SOURCE_DIR}/include/reactos/arm)
     endif()
 
-    if(MSVC)
-        include_directories(include/crt/msc)
-    else()
-        include_directories(include/crt/mingw32)
-    endif()
-
     add_dependency_header()
 
     add_subdirectory(include/psdk)
index 6870b0c..cd3c191 100644 (file)
  *
  */
 
+#ifndef _MINGW_FLOAT_H_
+#define _MINGW_FLOAT_H_
+
 #if defined(__GNUC__)
-#include <gcc_float.h>
+#include "mingw32/gcc_float.h"
 #elif defined(_MSC_VER)
-#include <msc_float.h>
+#include "msc/msc_float.h"
 #else
 #error
 #endif
 
-#ifndef _MINGW_FLOAT_H_
-#define _MINGW_FLOAT_H_
-
 #include <crtdefs.h>
 
 /*
diff --git a/reactos/include/crt/intrin.h b/reactos/include/crt/intrin.h
new file mode 100644 (file)
index 0000000..bd2be25
--- /dev/null
@@ -0,0 +1,10 @@
+
+#pragma once
+
+#ifdef __MINGW32__
+#  include "mingw32/intrin.h"
+#elif defined(_MSC_VER)
+#  include "msc/intrin.h"
+#else
+#  error Please implement intrinsics for your target compiler
+#endif