Aegisub/aegisub/src/config.h
Niels Martin Hansen ba6fded1cd Make sure Windows builds don't get min and max macros defined from WinDef.h.
Originally committed to SVN as r4957.
2010-12-11 18:27:28 +00:00

24 lines
450 B
C++

#ifndef AGI_PRE
#ifdef _WIN32
// Define min and max macros to identity.
// This will prevent WinDef.h defining them to functions, which prevents
// using std::min and std::max.
#define min min
#define max max
// Windows specific settings
#include "config/config_windows.h"
#else
// Generated by configure.in
#include "../acconf.h"
// Unix specific settings and defines.
#include "config/config_unix.h"
#endif // __WINDOWS__
#endif // AGI_PRE