#undef PACKAGE_NAME and friends to avoid clashes
authorSimon Marlow <simonmar@microsoft.com>
Wed, 6 Jun 2007 14:21:31 +0000 (14:21 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 6 Jun 2007 14:21:31 +0000 (14:21 +0000)
include/HsTime.h

index 025de83..897f9b5 100644 (file)
@@ -7,6 +7,12 @@
 #define __TIMEUTILS_H__
 
 #include "HsTimeConfig.h"
+// Otherwise these clash with similar definitions from other packages:
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_VERSION
 
 #if HAVE_GETTIMEOFDAY
 #  if HAVE_SYS_TIME_H