include: Prevent internal Wine headers from being used in tests.

oldstable
Alexandre Julliard 2006-05-25 20:07:57 +02:00
parent e8d4c2e674
commit 35e59151e9
4 changed files with 28 additions and 6 deletions

View File

@ -27,6 +27,10 @@
#include <guiddef.h>
#endif
#ifdef __WINE_WINE_TEST_H
#error This file should not be used in Wine tests
#endif
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -27,6 +27,10 @@
#include <windef.h>
#include <winbase.h>
#ifdef __WINE_WINE_TEST_H
#error This file should not be used in Wine tests
#endif
/* configuration */
extern const char *wine_get_build_dir(void);

View File

@ -18,14 +18,24 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_TEST_H
#define __WINE_TEST_H
#ifndef __WINE_WINE_TEST_H
#define __WINE_WINE_TEST_H
#include <stdarg.h>
#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
#ifdef __WINE_WINE_LIBRARY_H
#error wine/library.h should not be used in Wine tests
#endif
#ifdef __WINE_WINE_UNICODE_H
#error wine/unicode.h should not be used in Wine tests
#endif
#ifdef __WINE_WINE_DEBUG_H
#error wine/debug.h should not be used in Wine tests
#endif
/* debug level */
extern int winetest_debug;
@ -403,4 +413,4 @@ int main( int argc, char **argv )
#endif /* STANDALONE */
#endif /* __WINE_TEST_H */
#endif /* __WINE_WINE_TEST_H */

View File

@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_UNICODE_H
#define __WINE_UNICODE_H
#ifndef __WINE_WINE_UNICODE_H
#define __WINE_WINE_UNICODE_H
#include <stdarg.h>
@ -27,6 +27,10 @@
#include <winbase.h>
#include <winnls.h>
#ifdef __WINE_WINE_TEST_H
#error This file should not be used in Wine tests
#endif
#ifndef WINE_UNICODE_API
#define WINE_UNICODE_API DECLSPEC_IMPORT
#endif
@ -284,4 +288,4 @@ extern inline int atoiW( const WCHAR *str )
return (int)atolW( str );
}
#endif /* __WINE_UNICODE_H */
#endif /* __WINE_WINE_UNICODE_H */