Update of /cvsroot/crystal/CS/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5360/include
Modified Files:
csver.h cstypes.h
Log Message:
Eric Sunshine fixed some unportable uses of #warning directives in the
public CS headers. (#warning is not part of the C++ standard)
Index: csver.h
===================================================================
RCS file: /cvsroot/crystal/CS/include/csver.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- csver.h 7 Jul 2004 08:14:55 -0000 1.17
+++ csver.h 1 Apr 2005 22:26:44 -0000 1.18
@@ -39,17 +39,29 @@
#if !defined(CS_PLATFORM_NAME)
/// Name of the platform CS is compiled for (i.e. Win32)
# define CS_PLATFORM_NAME "MysteryPlatform"
+# if defined(CS_COMPILER_GCC)
# warning Unable to identify platform name using CS_PLATFORM_NAME.
+# elif defined(CS_COMPILER_MSVC)
+# pragma message("Unable to identify platform name using CS_PLATFORM_NAME.")
+# endif
#endif
#if !defined(CS_PROCESSOR_NAME)
/// Name of the processor CS is compiled for (i.e. X86)
# define CS_PROCESSOR_NAME "MysteryProcessor"
+# if defined(CS_COMPILER_GCC)
# warning Unable to identify processor name using CS_PROCESSOR_NAME.
+# elif defined(CS_COMPILER_MSVC)
+# pragma message("Unable to identify processor name using CS_PROCESSOR_NAME.")
+# endif
#endif
#if !defined(CS_COMPILER_NAME)
/// Name of the compiler CS is compiled with (i.e. GCC)
# define CS_COMPILER_NAME "MysteryCompiler"
+# if defined(CS_COMPILER_GCC)
# warning Unable to identify compiler name using CS_COMPILER_NAME.
+# elif defined(CS_COMPILER_MSVC)
+# pragma message("Unable to identify compiler name using CS_COMPILER_NAME.")
+# endif
#endif
/// A complete version number
Index: cstypes.h
===================================================================
RCS file: /cvsroot/crystal/CS/include/cstypes.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- cstypes.h 20 Mar 2005 09:57:42 -0000 1.43
+++ cstypes.h 1 Apr 2005 22:26:44 -0000 1.44
@@ -73,7 +73,7 @@
/// signed 64 bit integer
typedef __int64 int64;
#else
-#warning Do not know how to declare 64-bit integers
+#error Do not know how to declare 64-bit integers
#endif // CS_COMPILER_GCC
#else // CS_HAVE_STDINT_H
@@ -113,7 +113,7 @@
#define CONST_INT64(x) x##i64
#define CONST_UINT64(x) x##ui64
#else
-#warning Do not know how to contruct 64-bit integer constants
+#error Do not know how to contruct 64-bit integer constants
#endif // CS_COMPILER_GCC
#endif // CS_HAVE_INT64_C
@@ -203,7 +203,7 @@
typedef int_least64_t longlong;
typedef uint_least64_t ulonglong;
#else
-#warning Do not know how to declare (u)longlong types
+#error Do not know how to declare (u)longlong types
#endif
#endif
|