diff options
author | Pixel <Pixel> | 2002-08-18 01:38:23 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-08-18 01:38:23 +0000 |
commit | 396239cc78a75ba7be739788485319c92b07d827 (patch) | |
tree | cd3e9ef485c1026e40b909c1989ef662cde30f5f /includes/generic.h | |
parent | 11bf45f50739afb923829b3cc32efb9c8c009613 (diff) |
Blehaurg
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 |