diff options
author | Allen Winter <allen.winter@kdab.com> | 2014-09-08 10:58:53 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2014-09-08 10:58:53 -0400 |
commit | 1fd2afae84c3636bbc6c902b913d35f44963eb99 (patch) | |
tree | db5250cf3246005e9064042e10a12aee3ef68aa9 /config.h.cmake | |
parent | 6a4c450a011464da65e73daf29a20bb3e49b60e9 (diff) | |
download | libical-git-1fd2afae84c3636bbc6c902b913d35f44963eb99.tar.gz |
new _unused() macro to deal with unused arguments
as MSVC doesn't like the void trick.
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake index c543e89f..2d16a851 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -171,3 +171,9 @@ typedef int pid_t; #endif #cmakedefine SIZEOF_TIME_T ${SIZEOF_TIME_T} + +#if !defined(_MSC_VER) +#define _unused(x) (void)x; +#else +#define _unused(x) +#endif |