mirror of
https://github.com/lammertb/libhttp.git
synced 2025-12-22 04:02:04 +03:00
All macros should be enclosed by ()
This commit is contained in:
@@ -13,9 +13,9 @@ static void *mmap(void *addr, int64_t len, int prot, int flags, int fd,
|
||||
|
||||
static void munmap(void *addr, int64_t length) { UnmapViewOfFile(addr); }
|
||||
|
||||
#define MAP_FAILED NULL
|
||||
#define MAP_PRIVATE 0
|
||||
#define PROT_READ 0
|
||||
#define MAP_FAILED (NULL)
|
||||
#define MAP_PRIVATE (0)
|
||||
#define PROT_READ (0)
|
||||
#else
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user