summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/kwsysPrivate.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-10 15:46:06 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-10 15:46:06 (GMT)
commit776e21d1c7a3414aff8d307aaaef56abd907d8d5 (patch)
treebe9cf7f403df4f2e21a12df8f09321d782acbf78 /Source/kwsys/kwsysPrivate.h
parent7a839be9724be4d17c746823b32aeff33c6498eb (diff)
downloadCMake-776e21d1c7a3414aff8d307aaaef56abd907d8d5.zip
CMake-776e21d1c7a3414aff8d307aaaef56abd907d8d5.tar.gz
CMake-776e21d1c7a3414aff8d307aaaef56abd907d8d5.tar.bz2
COMP: Avoid String.c inclusion by Compaq templates
The Compaq compiler (on VMS) includes 'String.c' in source files that use the stl string while looking for template definitions. This was the true cause of double-inclusion of the 'kwsysPrivate.h' header. We work around the problem by conditionally compiling the entire source file on a condition only true when really building the source.
Diffstat (limited to 'Source/kwsys/kwsysPrivate.h')
-rw-r--r--Source/kwsys/kwsysPrivate.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/kwsys/kwsysPrivate.h b/Source/kwsys/kwsysPrivate.h
index 822ea53..200acc1 100644
--- a/Source/kwsys/kwsysPrivate.h
+++ b/Source/kwsys/kwsysPrivate.h
@@ -39,7 +39,5 @@
#define KWSYS_NAMESPACE_STRING1(x) #x
#else
-# ifndef __VMS /* Avoid strange false positive on VMS compiler. */
-# error "kwsysPrivate.h included multiple times."
-# endif
+# error "kwsysPrivate.h included multiple times."
#endif