summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
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