(back) ported win32 32bit compatibility along with lots of fixes

This commit is contained in:
scip
2014-03-15 17:26:42 +01:00
parent 080456219a
commit a1cfe16c3c
19 changed files with 135 additions and 50 deletions

View File

@@ -158,9 +158,6 @@
*/
#undef LT_OBJDIR
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O
/* Name of package */
#undef PACKAGE

8
include/pcp/platform.h Normal file → Executable file
View File

@@ -183,6 +183,14 @@ strnstr(const char *s, const char *find, size_t slen)
}
#endif
/* size_t format string */
#ifdef __LP64__
#define FMT_SIZE_T "llu"
#define SIZE_T_CAST long long unsigned int
#else
#define FMT_SIZE_T "lu"
#define SIZE_T_CAST long unsigned int
#endif
#endif /* !_HAVE_PCP_PLATFORM_H */

2
include/pcp/util.h Normal file → Executable file
View File

@@ -36,7 +36,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "platform.h"
#include "defines.h"