snmp ERROR macro patch (fixes conflict with WIN32 headers)

From: Robert Collins <robert.collins@dont-contact.us>
Date: Thu, 17 May 2001 22:23:30 +1000

Changelog:
    * include/snmp-internal.h: redefine ERROR to avoid a conflict with
win32 headers.

"ERROR" is not used anywhere.
Rob

Index: include/snmp-internal.h
===================================================================
RCS file: /cvsroot/squid/squid/include/snmp-internal.h,v
retrieving revision 1.2
diff -u -r1.2 snmp-internal.h
--- include/snmp-internal.h 2000/10/23 15:04:18 1.2
+++ include/snmp-internal.h 2001/05/17 12:24:00
@@ -33,9 +33,9 @@
 #define SNMP_MAX_LEN 484

 #ifdef DEBUG
-#define ERROR(string) printf("%s(%d): %s\n",__FILE__, __LINE__,
string);
+#define SNMP_ERROR(string) printf("%s(%d): %s\n",__FILE__,
__LINE__, string);
 #else
-#define ERROR(string)
+#define SNMP_ERROR(string)
 #endif

 #endif /* _SNMP_INTERNAL_H_ */
Received on Thu May 17 2001 - 06:25:15 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:01 MST