0ad/source/lib/sysdep/win/win.h
janwas 9e3ae3bdf2 further lint fixes
new init seg, group "C" called before libc init

better critsec impl, doesn't break if called after shutdown

This was SVN commit r1779.
2005-01-23 18:04:34 +00:00

26 lines
639 B
C
Executable File

#if !defined(__WIN_H__) && defined(_WIN32)
#define __WIN_H__
#include <wchar.h>
// C99
#define snprintf _snprintf
#define swprintf _snwprintf
#define vsnprintf _vsnprintf
#define vsnwprintf _vsnwprintf
#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
extern "C" void win_debug_break(void);
#endif // #ifndef __WIN_H__