include: Prevent internal Wine headers from being used in tests.
This commit is contained in:
parent
e8d4c2e674
commit
35e59151e9
@ -27,6 +27,10 @@
|
|||||||
#include <guiddef.h>
|
#include <guiddef.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WINE_WINE_TEST_H
|
||||||
|
#error This file should not be used in Wine tests
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
|
|
||||||
|
#ifdef __WINE_WINE_TEST_H
|
||||||
|
#error This file should not be used in Wine tests
|
||||||
|
#endif
|
||||||
|
|
||||||
/* configuration */
|
/* configuration */
|
||||||
|
|
||||||
extern const char *wine_get_build_dir(void);
|
extern const char *wine_get_build_dir(void);
|
||||||
|
@ -18,14 +18,24 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __WINE_TEST_H
|
#ifndef __WINE_WINE_TEST_H
|
||||||
#define __WINE_TEST_H
|
#define __WINE_WINE_TEST_H
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
#include <winbase.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 */
|
/* debug level */
|
||||||
extern int winetest_debug;
|
extern int winetest_debug;
|
||||||
|
|
||||||
@ -403,4 +413,4 @@ int main( int argc, char **argv )
|
|||||||
|
|
||||||
#endif /* STANDALONE */
|
#endif /* STANDALONE */
|
||||||
|
|
||||||
#endif /* __WINE_TEST_H */
|
#endif /* __WINE_WINE_TEST_H */
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __WINE_UNICODE_H
|
#ifndef __WINE_WINE_UNICODE_H
|
||||||
#define __WINE_UNICODE_H
|
#define __WINE_WINE_UNICODE_H
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
@ -27,6 +27,10 @@
|
|||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
#include <winnls.h>
|
#include <winnls.h>
|
||||||
|
|
||||||
|
#ifdef __WINE_WINE_TEST_H
|
||||||
|
#error This file should not be used in Wine tests
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef WINE_UNICODE_API
|
#ifndef WINE_UNICODE_API
|
||||||
#define WINE_UNICODE_API DECLSPEC_IMPORT
|
#define WINE_UNICODE_API DECLSPEC_IMPORT
|
||||||
#endif
|
#endif
|
||||||
@ -284,4 +288,4 @@ extern inline int atoiW( const WCHAR *str )
|
|||||||
return (int)atolW( str );
|
return (int)atolW( str );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __WINE_UNICODE_H */
|
#endif /* __WINE_WINE_UNICODE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user