Define __RELFILE__ the same for an -O0 build so the tests don't get edgy when compari...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 13 Sep 2015 11:08:16 +0000 (11:08 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 13 Sep 2015 11:08:16 +0000 (11:08 +0000)
svn path=/trunk/; revision=69214

reactos/include/reactos/builddir.h.cmake
reactos/include/reactos/debug.h
reactos/include/reactos/wine/debug.h

index 25c0879..1e94f39 100644 (file)
@@ -5,10 +5,12 @@
 #define REACTOS_SOURCE_DIR "@REACTOS_SOURCE_DIR@"
 #define REACTOS_BINARY_DIR "@REACTOS_BINARY_DIR@"
 
-#if defined(__GNUC__) && defined(__OPTIMIZE__)
+#if defined(__GNUC__)
 #define __RELFILE__ \
     (!__builtin_strncmp(__FILE__, REACTOS_SOURCE_DIR, sizeof(REACTOS_SOURCE_DIR) - 1) \
      ? __FILE__ + sizeof(REACTOS_SOURCE_DIR) : __FILE__)
+#else
+#define __RELFILE__ __FILE__
 #endif
 
 /* EOF */
index e766b96..2d1b475 100644 (file)
 
 #include <builddir.h>
 
-#if !defined(__RELFILE__)
-#define __RELFILE__ __FILE__
-#endif
-
 /* Define DbgPrint/DbgPrintEx/RtlAssert unless the NDK is used */
 #if !defined(_RTLFUNCS_H) && !defined(_NTDDK_)
 
index 16ef3f9..d3aad14 100644 (file)
 
 #include <builddir.h>
 
-#if !defined(__RELFILE__)
-#define __RELFILE__ __FILE__
-#endif
-
 #ifdef __WINE_WINE_TEST_H
 #error This file should not be used in Wine tests
 #endif