summaryrefslogtreecommitdiffstats
path: root/generic/tkbltInt.h
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-21 09:41:59 (GMT)
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-21 11:41:04 (GMT)
commitfbf29e98b04d712bc3e0c9709653d275fc3e7927 (patch)
treebe7416cfffe694b60d974a4d58e7abca0bdd8014 /generic/tkbltInt.h
parentf10a85adccccb3efccfc84a7d4ca12cc66c7fb1c (diff)
downloadblt-fbf29e98b04d712bc3e0c9709653d275fc3e7927.zip
blt-fbf29e98b04d712bc3e0c9709653d275fc3e7927.tar.gz
blt-fbf29e98b04d712bc3e0c9709653d275fc3e7927.tar.bz2
Fix MSVC's C2375 "redefinition with different linkage"
Apply Tcl's mechanism for reusing headers as internal and public API: presence of a particular preprocessor definition (BUILD_tkblt) switches declarations from specifying symbols "to be imported" or, alternatively, "exporting".
Diffstat (limited to 'generic/tkbltInt.h')
-rw-r--r--generic/tkbltInt.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/generic/tkbltInt.h b/generic/tkbltInt.h
index f13603a..2bf96ee 100644
--- a/generic/tkbltInt.h
+++ b/generic/tkbltInt.h
@@ -55,18 +55,4 @@
#endif /* _MSC_VER */
-/*
- * Silence warnings about unused parameters while keeping the parameter name.
- */
-#ifdef UNUSED
-#elif defined(__GNUC__)
-# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
-#elif defined(__MSC_VER__)
-# define UNUSED(x) __pragma(warning(suppress:4100)) x
-#elif defined(__cplusplus)
-# define UNUSED(x)
-#else
-# define UNUSED(x) x
-#endif
-
#endif /* __TKBLT_INT_H__ */