diff options
Diffstat (limited to 'Source/kwsys/String.c')
-rw-r--r-- | Source/kwsys/String.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/String.c b/Source/kwsys/String.c index 1aade12..9d2afc6 100644 --- a/Source/kwsys/String.c +++ b/Source/kwsys/String.c @@ -11,6 +11,14 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ +#ifdef KWSYS_STRING_C +/* +All code in this source file is conditionally compiled to work-around +template definition auto-search on VMS. Other source files in this +directory that use the stl string cause the compiler to load this +source to try to get the definition of the string template. This +condition blocks the compiler from seeing the symbols defined here. +*/ #include "kwsysPrivate.h" #include KWSYS_HEADER(String.h) @@ -105,3 +113,5 @@ int kwsysString_strncasecmp(const char* lhs, const char* rhs, size_t n) return result; #endif } + +#endif /* KWSYS_STRING_C */ |