Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created March 30, 2012 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/83d98e1e584b7df02ee5 to your computer and use it in GitHub Desktop.
Save bnoordhuis/83d98e1e584b7df02ee5 to your computer and use it in GitHub Desktop.
diff --git a/include/uv-private/tree.h b/include/uv-private/tree.h
index eb05cdc..f070928 100644
--- a/include/uv-private/tree.h
+++ b/include/uv-private/tree.h
@@ -26,10 +26,12 @@
#ifndef UV_TREE_H_
#define UV_TREE_H_
-#if __GNUC__
-# define __unused __attribute__((unused))
-#else
-# define __unused
+#ifndef __unused
+# if __GNUC__
+# define __unused __attribute__((unused))
+# else
+# define __unused
+# endif
#endif
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment