summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-29 22:53:04 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-29 22:53:04 +0300
commit6ba55bd63422372bf4b9a573f0c75fc0877652c1 (patch)
treebeb3285c71b052bea0fdad93acd2461e4fc5df49 /src/fs
parent8f95378c3be89c06c722da03ddbd3641c4fc2323 (diff)
downloadmanaverse-6ba55bd63422372bf4b9a573f0c75fc0877652c1.tar.gz
manaverse-6ba55bd63422372bf4b9a573f0c75fc0877652c1.tar.bz2
manaverse-6ba55bd63422372bf4b9a573f0c75fc0877652c1.tar.xz
manaverse-6ba55bd63422372bf4b9a573f0c75fc0877652c1.zip
Move rwops types into separate file.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/virtfs/rwopstypes.h34
-rw-r--r--src/fs/virtfs/virtfsrwops.h10
2 files changed, 36 insertions, 8 deletions
diff --git a/src/fs/virtfs/rwopstypes.h b/src/fs/virtfs/rwopstypes.h
new file mode 100644
index 000000000..36a87e5a4
--- /dev/null
+++ b/src/fs/virtfs/rwopstypes.h
@@ -0,0 +1,34 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2013-2017 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef SRC_FS_VIRTFS_RWOPSTYPES_H
+#define SRC_FS_VIRTFS_RWOPSTYPES_H
+
+#include "localconsts.h"
+
+#ifdef USE_SDL2
+#define RWOPSINT int64_t
+#define RWOPSSIZE size_t
+#else // USE_SDL2
+#define RWOPSINT int32_t
+#define RWOPSSIZE int
+#endif // USE_SDL2
+
+#endif // SRC_FS_VIRTFS_RWOPSTYPES_H
diff --git a/src/fs/virtfs/virtfsrwops.h b/src/fs/virtfs/virtfsrwops.h
index 46d5acca0..ea1259d17 100644
--- a/src/fs/virtfs/virtfsrwops.h
+++ b/src/fs/virtfs/virtfsrwops.h
@@ -47,17 +47,11 @@
#include "localconsts.h"
+#include "fs/virtfs/rwopstypes.h"
+
#include <string>
#include <SDL_rwops.h>
-#ifdef USE_SDL2
-#define RWOPSINT int64_t
-#define RWOPSSIZE size_t
-#else // USE_SDL2
-#define RWOPSINT int32_t
-#define RWOPSSIZE int
-#endif // USE_SDL2
-
struct VirtFile;
namespace VirtFs