Add "ifndef/endif" to avoid conflict of "MIN" and "MAX" definition.

This commit is contained in:
Masamitsu MURASE
2012-05-27 23:07:20 +09:00
parent 2f4ef95ae6
commit c8201aa7ce
+5
View File
@@ -222,8 +222,13 @@
#include "regenc.h"
#ifndef MIN
#define MIN(a,b) (((a)>(b))?(b):(a))
#endif
#ifndef MAX
#define MAX(a,b) (((a)<(b))?(b):(a))
#endif
#define IS_NULL(p) (((void*)(p)) == (void*)0)
#define IS_NOT_NULL(p) (((void*)(p)) != (void*)0)