aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlex Bevilacqua2011-02-16 14:58:22 -0500
committerAlex Bevilacqua2011-02-16 14:58:22 -0500
commit75c99ac175c235956b76cc230c6bd44e42de58eb (patch)
tree2bda59c1e1aec0e79c9802a0c0ea7f2637a16aa5 /engines
parent8156c70f77ea5a75b60dfb96f467dc540cead9ae (diff)
downloadscummvm-rg350-75c99ac175c235956b76cc230c6bd44e42de58eb.tar.gz
scummvm-rg350-75c99ac175c235956b76cc230c6bd44e42de58eb.tar.bz2
scummvm-rg350-75c99ac175c235956b76cc230c6bd44e42de58eb.zip
TSAGE: fix tokenization issue in SYNC_ENUM in GCC
This needs to be tested in MSVC to ensure it doesn't now break Windows builds with a different error ;)
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/saveload.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/saveload.h b/engines/tsage/saveload.h
index 054d968105..efaa8d696e 100644
--- a/engines/tsage/saveload.h
+++ b/engines/tsage/saveload.h
@@ -52,8 +52,8 @@ struct tSageSavegameHeader {
/*--------------------------------------------------------------------------*/
#define SYNC_POINTER(x) s.syncPointer((SavedObject **)&x)
-#define SYNC_ENUM(FIELD, TYPE) int v_##FIELD## = (int)FIELD; s.syncAsUint16LE(v_##FIELD##); \
- if (s.isLoading()) FIELD = (TYPE)v_##FIELD##;
+#define SYNC_ENUM(FIELD, TYPE) int v_##FIELD = (int)FIELD; s.syncAsUint16LE(v_##FIELD); \
+ if (s.isLoading()) FIELD = (TYPE)v_##FIELD;
/**
* Derived serialiser class with extra synchronisation types