2004-03-03 00:56:51 +01:00
|
|
|
#if !defined(__WIN_H__) && defined(_WIN32)
|
|
|
|
#define __WIN_H__
|
|
|
|
|
2004-03-04 21:36:31 +01:00
|
|
|
#include <wchar.h>
|
|
|
|
|
2004-03-03 00:56:51 +01:00
|
|
|
// C99
|
|
|
|
#define snprintf _snprintf
|
2004-03-04 21:36:31 +01:00
|
|
|
#define swprintf _snwprintf
|
2004-03-03 00:56:51 +01:00
|
|
|
#define vsnprintf _vsnprintf
|
2004-05-06 19:14:30 +02:00
|
|
|
#define vsnwprintf _vsnwprintf
|
2004-03-03 00:56:51 +01:00
|
|
|
|
|
|
|
#include <stddef.h> // wchar_t
|
|
|
|
|
|
|
|
// libpng.h -> zlib.h -> zconf.h includes <windows.h>, which causes conflicts.
|
|
|
|
// inhibit this, and define what they actually need from windows.h
|
|
|
|
// incidentally, this requires all windows dependencies to include
|
|
|
|
// sysdep/win_internal.h
|
|
|
|
#define _WINDOWS_ // windows.h include guard
|
|
|
|
#define WINAPI __stdcall
|
|
|
|
#define WINAPIV __cdecl
|
|
|
|
|
2004-05-06 19:14:30 +02:00
|
|
|
#endif // #ifndef __WIN_H__
|