diff options
Diffstat (limited to 'includes/generic.h')
-rw-r--r-- | includes/generic.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/includes/generic.h b/includes/generic.h index 41f3a5f..9c5b7a4 100644 --- a/includes/generic.h +++ b/includes/generic.h @@ -19,6 +19,9 @@ #ifndef __GENERIC_H__ #define __GENERIC_H__ +#ifdef __cplusplus +#include "String.h" +#endif #define M_BARE -1 #define M_ERROR 0 @@ -77,9 +80,7 @@ extern char verbosity; char ** split(char * s, char t); #ifdef __cplusplus -class String; void printm(int level, String fmt, ...); -#include "String.h" #ifndef MAX template<class T> @@ -106,4 +107,15 @@ inline T MIN(T a, T b) { #endif +#include <sys/types.h> +#include <sys/stat.h> + +#if defined __linux__ || defined __CYGWIN32__ +#define MKDIR(name) mkdir(name, 0777) +#elif defined __MINGW32_VERSION +#define MKDIR mkdir +#else +#error Unknow compiler/platform +#endif + #endif |