STYLE: Simplify and document VMS workarounds
The kwsysPrivate header double-inclusion check hits a false positive on VMS for an undetermined reason. This simplifies the workaround and documents it.
This commit is contained in:
parent
317b3a0ef8
commit
248bdadd94
@ -12,10 +12,8 @@
|
|||||||
|
|
||||||
=========================================================================*/
|
=========================================================================*/
|
||||||
#ifndef KWSYS_NAMESPACE
|
#ifndef KWSYS_NAMESPACE
|
||||||
# ifndef __VMS
|
|
||||||
# error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
|
# error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _kwsysPrivate_h
|
#ifndef _kwsysPrivate_h
|
||||||
#define _kwsysPrivate_h
|
#define _kwsysPrivate_h
|
||||||
@ -41,7 +39,7 @@
|
|||||||
#define KWSYS_NAMESPACE_STRING1(x) #x
|
#define KWSYS_NAMESPACE_STRING1(x) #x
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# ifndef __VMS
|
# ifndef __VMS /* Avoid strange false positive on VMS compiler. */
|
||||||
# error "kwsysPrivate.h included multiple times."
|
# error "kwsysPrivate.h included multiple times."
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user