diff options
author | Brad King <brad.king@kitware.com> | 2004-05-10 17:38:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-05-10 17:38:33 (GMT) |
commit | dd70c8f82d5101fa4ec49c379fdbbdda14fe9a3b (patch) | |
tree | 26b462afd164088a4bc79fc92cecfcf346dd161b /Source | |
parent | 5017fc66e5b0c466d1ddd747e3737a3c738e438c (diff) | |
download | CMake-dd70c8f82d5101fa4ec49c379fdbbdda14fe9a3b.zip CMake-dd70c8f82d5101fa4ec49c379fdbbdda14fe9a3b.tar.gz CMake-dd70c8f82d5101fa4ec49c379fdbbdda14fe9a3b.tar.bz2 |
ERR: Avoiding namespace pollution: kw_sys -> kwsys_ns. Also undefining the macro at the correct time.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/Base64.h.in | 18 | ||||
-rw-r--r-- | Source/kwsys/ProcessWin32.c | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Source/kwsys/Base64.h.in b/Source/kwsys/Base64.h.in index 93431cc..14bb1ec 100644 --- a/Source/kwsys/Base64.h.in +++ b/Source/kwsys/Base64.h.in @@ -20,15 +20,15 @@ namespace. These macros are used internally to kwsys only, and are not visible to user code. Use kwsysHeaderDump.pl to reproduce these macros after making changes to the interface. */ -#define kw_sys(x) @KWSYS_NAMESPACE@##x +#define kwsys_ns(x) @KWSYS_NAMESPACE@##x #define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT -#define kwsysBase64 kw_sys(Base64) -#define kwsysBase64_Decode kw_sys(Base64_Decode) -#define kwsysBase64_Decode3 kw_sys(Base64_Decode3) -#define kwsysBase64_Encode kw_sys(Base64_Encode) -#define kwsysBase64_Encode1 kw_sys(Base64_Encode1) -#define kwsysBase64_Encode2 kw_sys(Base64_Encode2) -#define kwsysBase64_Encode3 kw_sys(Base64_Encode3) +#define kwsysBase64 kwsys_ns(Base64) +#define kwsysBase64_Decode kwsys_ns(Base64_Decode) +#define kwsysBase64_Decode3 kwsys_ns(Base64_Decode3) +#define kwsysBase64_Encode kwsys_ns(Base64_Encode) +#define kwsysBase64_Encode1 kwsys_ns(Base64_Encode1) +#define kwsysBase64_Encode2 kwsys_ns(Base64_Encode2) +#define kwsysBase64_Encode3 kwsys_ns(Base64_Encode3) #if defined(__cplusplus) extern "C" @@ -102,7 +102,7 @@ kwsysEXPORT unsigned long kwsysBase64_Decode(const unsigned char *input, /* If we are building Base64.c, let it use these macros. Otherwise, undefine them to keep the namespace clean. */ #if !defined(KWSYS_IN_BASE64_C) -# undef kwsys +# undef kwsys_ns # undef kwsysEXPORT # undef kwsysBase64 # undef kwsysBase64_Decode diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c index 9c86242..cdb4e96 100644 --- a/Source/kwsys/ProcessWin32.c +++ b/Source/kwsys/ProcessWin32.c @@ -63,7 +63,7 @@ Q190351 and Q150956. /* The maximum amount to read from a pipe at a time. */ #define KWSYSPE_PIPE_BUFFER_SIZE 1024 -#define kwsysEncodedWriteArrayProcessFwd9x kw_sys(EncodedWriteArrayProcessFwd9x) +#define kwsysEncodedWriteArrayProcessFwd9x kwsys_ns(EncodedWriteArrayProcessFwd9x) typedef LARGE_INTEGER kwsysProcessTime; |