Mercurial > hg > aimc
diff src/Support/Common.h @ 252:de2b483654ee
Windows build fixes.
author | tomwalters |
---|---|
date | Tue, 02 Nov 2010 23:46:56 +0000 |
parents | 2aa72aa8a0d4 |
children |
line wrap: on
line diff
--- a/src/Support/Common.h Mon Nov 01 01:36:44 2010 +0000 +++ b/src/Support/Common.h Tue Nov 02 23:46:56 2010 +0000 @@ -32,6 +32,15 @@ #include <stdio.h> #include <stdarg.h> +// Defines for windows +#ifdef _WINDOWS +#define M_PI 3.14159265359 +#define isnan _isnan +#define isinf(x) (!_finite(x)) +#define snprintf _snprintf +#define PATH_MAX _MAX_PATH +#endif + #define AIM_NAME "AIM-C" #define AIM_VERSION_STRING "version_number"