[Box Backup-commit] COMMIT r2512 - box/trunk/lib/common
boxbackup-dev@boxbackup.org
boxbackup-dev@boxbackup.org
Sun, 26 Apr 2009 15:41:24 +0100 (BST)
Author: chris
Date: 2009-04-26 15:41:24 +0100 (Sun, 26 Apr 2009)
New Revision: 2512
Modified:
box/trunk/lib/common/BoxPlatform.h
box/trunk/lib/common/FileStream.h
Log:
Move definition of INVALID_HANDLE_VALUE and tOSFileHandle to
BoxPlatform.h, to make them available in other files.
Modified: box/trunk/lib/common/BoxPlatform.h
===================================================================
--- box/trunk/lib/common/BoxPlatform.h 2009-04-26 14:40:17 UTC (rev 2511)
+++ box/trunk/lib/common/BoxPlatform.h 2009-04-26 14:41:24 UTC (rev 2512)
@@ -176,6 +176,14 @@
#include "emu.h"
+#ifdef WIN32
+ #define INVALID_FILE INVALID_HANDLE_VALUE
+ typedef HANDLE tOSFileHandle;
+#else
+ #define INVALID_FILE -1
+ typedef int tOSFileHandle;
+#endif
+
// Solaris has no dirfd(x) macro or function, and we need one for
// intercept tests. We cannot define macros with arguments directly
// using AC_DEFINE, so do it here instead of in configure.ac.
Modified: box/trunk/lib/common/FileStream.h
===================================================================
--- box/trunk/lib/common/FileStream.h 2009-04-26 14:40:17 UTC (rev 2511)
+++ box/trunk/lib/common/FileStream.h 2009-04-26 14:41:24 UTC (rev 2512)
@@ -20,14 +20,6 @@
#include <unistd.h>
#endif
-#ifdef WIN32
- #define INVALID_FILE INVALID_HANDLE_VALUE
- typedef HANDLE tOSFileHandle;
-#else
- #define INVALID_FILE -1
- typedef int tOSFileHandle;
-#endif
-
class FileStream : public IOStream
{
public: