[sword-cvs] sword/include defs.h,1.10,1.11
sword@www.crosswire.org
sword@www.crosswire.org
Thu, 15 Jan 2004 20:42:43 -0700
Update of /cvs/core/sword/include
In directory www:/tmp/cvs-serv22315/include
Modified Files:
defs.h
Log Message:
WINCE fixes
Index: defs.h
===================================================================
RCS file: /cvs/core/sword/include/defs.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- defs.h 1 Jun 2003 14:32:09 -0000 1.10
+++ defs.h 16 Jan 2004 03:42:41 -0000 1.11
@@ -15,6 +15,14 @@
SWORD_NAMESPACE_START
+#ifdef _WIN32_WCE
+#define SWTRY
+#define SWCATCH(x) if (0)
+#else
+#define SWTRY try
+#define SWCATCH(x) catch (x)
+#endif
+
// _declspec works in BC++ 5 and later, as well as VC++
#if defined(_MSC_VER)