mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
(back) ported win32 32bit compatibility along with lots of fixes
This commit is contained in:
@@ -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
8
include/pcp/platform.h
Normal file → Executable 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
2
include/pcp/util.h
Normal file → Executable file
@@ -36,7 +36,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "platform.h"
|
||||
#include "defines.h"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user