ref: 822a379bbd83961982f8ed7930c60b76113faf7e
parent: 53aeac72cefc7b3d5ee27685f169ed511b6771ad
author: rrt <rrt>
date: Thu Dec 14 14:57:41 EST 2006
Don't define __attribute__ as a macro. Guard definition of UNUSED to reflect this.
--- a/src/st.h
+++ b/src/st.h
@@ -15,12 +15,10 @@
#include <stdlib.h>
#include "ststdint.h"
-#ifndef __GNUC__
-# define __attribute__(x) /*NOTHING*/
-#endif
-
/* Avoid warnings about unused parameters. */
+#ifdef __GNUC__
#define UNUSED __attribute__ ((unused))
+#endif
/* C language enhancements: */