summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Config.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-02-20 20:25:15 +0000
committerMark Spruiell <mes@zeroc.com>2003-02-20 20:25:15 +0000
commit32d82b918f3d2fd35e2763b6ee4f05980c7b651c (patch)
treeea6088bb0a5f9fb972051db555d785b0a003bc94 /cpp/include/IceUtil/Config.h
parentremove trailing comma from enum (diff)
downloadice-32d82b918f3d2fd35e2763b6ee4f05980c7b651c.tar.bz2
ice-32d82b918f3d2fd35e2763b6ee4f05980c7b651c.tar.xz
ice-32d82b918f3d2fd35e2763b6ee4f05980c7b651c.zip
adding ICE_INT64 macro for portable long long constants
Diffstat (limited to 'cpp/include/IceUtil/Config.h')
-rw-r--r--cpp/include/IceUtil/Config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h
index 859a36db279..f0235c83b44 100644
--- a/cpp/include/IceUtil/Config.h
+++ b/cpp/include/IceUtil/Config.h
@@ -121,10 +121,12 @@ private:
typedef __int64 Int64;
const Int64 Int64Min = -9223372036854775808i64;
const Int64 Int64Max = 9223372036854775807i64;
+#define ICE_INT64(x) Int64(x##i64)
#elif defined(__linux__) && defined(i386)
typedef long long Int64;
const Int64 Int64Min = -0x7fffffffffffffffLL-1LL;
const Int64 Int64Max = 0x7fffffffffffffffLL;
+#define ICE_INT64(x) Int64(x##LL)
#endif
}