summaryrefslogtreecommitdiff
path: root/cmakeconfig.h.in
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2012-02-02 12:04:22 +0000
committerJörg Mayer <jmayer@loplof.de>2012-02-02 12:04:22 +0000
commit137f3fc4557e069ab3d66048f1cbf0acca086673 (patch)
treea3e7701ce4eb06d14fe10782d1a45867c0cf006a /cmakeconfig.h.in
parent2d7a4646e22b534803fa7ca1480912e68cd97ba3 (diff)
downloadwireshark-137f3fc4557e069ab3d66048f1cbf0acca086673.tar.gz
- Move setting _U_ into config.h, because
a) C++ has a standardized way of marking parameters as unused b) cmakes autoquoting magic failed when the compiler wasn't gcc but moc instead. - qtshark: Don't try to compile the c source files inside ui/qt/ - qtshark: Only run moc on the files that need it. - qtshark: It's too early to try any of the new qtshark files as clean. - Make Qt detection actually work - Add C++ to the list of languages for this project svn path=/trunk/; revision=40807
Diffstat (limited to 'cmakeconfig.h.in')
-rw-r--r--cmakeconfig.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in
index 2a4e1ab644..8578ef05be 100644
--- a/cmakeconfig.h.in
+++ b/cmakeconfig.h.in
@@ -368,3 +368,10 @@
`char[]'. */
/* Note: not use in the code */
#cmakedefine YYTEXT_POINTER
+
+/* _U_ isn't needed for C++, simply don't name the variable.
+ Also, running moc with -D_U_... breaks cmake's auto escaping magic. */
+#ifndef __cplusplus
+# define _U_ ${C_UNUSED}
+#endif
+