forked from enlightenment/efl
Fix EVIL_API for mmap functions
This commit is contained in:
parent
253f8eaa77
commit
db2fe9bfcc
|
@ -6,9 +6,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# ifndef EVIL_DLL
|
# ifdef EVIL_BUILD
|
||||||
# define EVIL_API
|
|
||||||
# elif defined(EVIL_BUILD)
|
|
||||||
# define EVIL_API __declspec(dllexport)
|
# define EVIL_API __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
# define EVIL_API __declspec(dllimport)
|
# define EVIL_API __declspec(dllimport)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif /* HAVE_CONFIG_H */
|
#endif /* HAVE_CONFIG_H */
|
||||||
|
|
||||||
#if 0
|
#include <evil_api.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -156,4 +156,4 @@ mprotect(void *addr, size_t len, int prot)
|
||||||
return VirtualProtect(addr, len, _evil_mmap_protection_get(prot), &old) ? 0 : -1;
|
return VirtualProtect(addr, len, _evil_mmap_protection_get(prot), &old) ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef __EVIL_SYS_MMAN_H__
|
#ifndef __EVIL_SYS_MMAN_H__
|
||||||
#define __EVIL_SYS_MMAN_H__
|
#define __EVIL_SYS_MMAN_H__
|
||||||
|
|
||||||
|
#include <evil_api.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue