27 |
#ifndef __LS_GLOBAL_H__ |
#ifndef __LS_GLOBAL_H__ |
28 |
#define __LS_GLOBAL_H__ |
#define __LS_GLOBAL_H__ |
29 |
|
|
30 |
|
// workaround for a bug with older versions of mingw, which would prevent |
31 |
|
// portable format specifiers like PRId64 from being defined |
32 |
|
#ifdef __MINGW32__ |
33 |
|
# define __STDC_FORMAT_MACROS 1 |
34 |
|
#endif |
35 |
|
|
36 |
|
// C++ header <string> before any C headers intentionally here, due to |
37 |
|
// format specifiers bug occurring with older versions of mingw (see above) |
38 |
|
#include <string> |
39 |
#include <stdlib.h> |
#include <stdlib.h> |
40 |
#include <stdint.h> |
#include <stdint.h> |
41 |
#include <stdio.h> |
#include <stdio.h> |
42 |
#include <inttypes.h> |
#include <inttypes.h> |
43 |
|
|
|
#include <string> |
|
|
|
|
44 |
typedef std::string String; |
typedef std::string String; |
45 |
|
|
46 |
#if defined(WIN32) |
#if defined(WIN32) |