summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPixel <Pixel>2002-08-18 01:38:23 +0000
committerPixel <Pixel>2002-08-18 01:38:23 +0000
commit396239cc78a75ba7be739788485319c92b07d827 (patch)
treecd3e9ef485c1026e40b909c1989ef662cde30f5f /includes
parent11bf45f50739afb923829b3cc32efb9c8c009613 (diff)
Blehaurg
Diffstat (limited to 'includes')
-rw-r--r--includes/Handle.h2
-rw-r--r--includes/Input.h2
-rw-r--r--includes/generic.h16
3 files changed, 17 insertions, 3 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index 368ec40..4bab879 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -54,6 +54,8 @@ class Handle : public Base {
Handle & operator<<(Handle &, const String &);
Handle & operator>>(Handle &, String &);
+void copy(Handle *, Handle *, ssize_t = -1);
+
#else
#error This only works with a C++ compiler
#endif
diff --git a/includes/Input.h b/includes/Input.h
index 8e3e84e..d1755e7 100644
--- a/includes/Input.h
+++ b/includes/Input.h
@@ -9,7 +9,7 @@
class Input : public Handle {
public:
- Input(String = "") throw (GeneralException);
+ Input(const String & = "") throw (GeneralException);
Input(const Input &);
virtual ~Input() {}
virtual bool CanWrite();
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