mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add "ifndef/endif" to avoid conflict of "MIN" and "MAX" definition.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user