Define __RELFILE__ the same for an -O0 build so the tests don't get edgy when comparing it to our optimized builds.

svn path=/trunk/; revision=69214
This commit is contained in:
Stefan Ginsberg 2015-09-13 11:08:16 +00:00
parent ce9619abe7
commit 967f47e576
3 changed files with 3 additions and 9 deletions

View 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 */

View file

@ -16,10 +16,6 @@
#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_)

View file

@ -29,10 +29,6 @@
#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