mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
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:
parent
ce9619abe7
commit
967f47e576
|
@ -5,10 +5,12 @@
|
||||||
#define REACTOS_SOURCE_DIR "@REACTOS_SOURCE_DIR@"
|
#define REACTOS_SOURCE_DIR "@REACTOS_SOURCE_DIR@"
|
||||||
#define REACTOS_BINARY_DIR "@REACTOS_BINARY_DIR@"
|
#define REACTOS_BINARY_DIR "@REACTOS_BINARY_DIR@"
|
||||||
|
|
||||||
#if defined(__GNUC__) && defined(__OPTIMIZE__)
|
#if defined(__GNUC__)
|
||||||
#define __RELFILE__ \
|
#define __RELFILE__ \
|
||||||
(!__builtin_strncmp(__FILE__, REACTOS_SOURCE_DIR, sizeof(REACTOS_SOURCE_DIR) - 1) \
|
(!__builtin_strncmp(__FILE__, REACTOS_SOURCE_DIR, sizeof(REACTOS_SOURCE_DIR) - 1) \
|
||||||
? __FILE__ + sizeof(REACTOS_SOURCE_DIR) : __FILE__)
|
? __FILE__ + sizeof(REACTOS_SOURCE_DIR) : __FILE__)
|
||||||
|
#else
|
||||||
|
#define __RELFILE__ __FILE__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -16,10 +16,6 @@
|
||||||
|
|
||||||
#include <builddir.h>
|
#include <builddir.h>
|
||||||
|
|
||||||
#if !defined(__RELFILE__)
|
|
||||||
#define __RELFILE__ __FILE__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define DbgPrint/DbgPrintEx/RtlAssert unless the NDK is used */
|
/* Define DbgPrint/DbgPrintEx/RtlAssert unless the NDK is used */
|
||||||
#if !defined(_RTLFUNCS_H) && !defined(_NTDDK_)
|
#if !defined(_RTLFUNCS_H) && !defined(_NTDDK_)
|
||||||
|
|
||||||
|
|
|
@ -29,10 +29,6 @@
|
||||||
|
|
||||||
#include <builddir.h>
|
#include <builddir.h>
|
||||||
|
|
||||||
#if !defined(__RELFILE__)
|
|
||||||
#define __RELFILE__ __FILE__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __WINE_WINE_TEST_H
|
#ifdef __WINE_WINE_TEST_H
|
||||||
#error This file should not be used in Wine tests
|
#error This file should not be used in Wine tests
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue