]> andersk Git - test.git/blobdiff - shellinabox/usercss.c
Some changes to improve compatibility with MacOS X.
[test.git] / shellinabox / usercss.c
index 09da5eefeeedf6c82afdf64ea777dd23385f0ad5..9620cdd02bbd26b00b0fbef89c1a35743e94ed01 100644 (file)
 #include "shellinabox/usercss.h"
 #include "libhttp/hashmap.h"
 
+#ifdef HAVE_UNUSED
+#defined ATTR_UNUSED __attribute__((unused))
+#defined UNUSED(x)   do { } while (0)
+#else
+#define ATTR_UNUSED
+#define UNUSED(x)    do { (void)(x); } while (0)
+#endif
+
 static struct HashMap *defines;
 
-static void definesDestructor(void *arg, char *key, char *value) {
-  (void)arg;
-  (void)value;
+static void definesDestructor(void *arg ATTR_UNUSED, char *key,
+                              char *value ATTR_UNUSED) {
+  UNUSED(arg);
+  UNUSED(value);
 
   free(key);
 }
This page took 0.034234 seconds and 4 git commands to generate.