Fix EVIL_API for mmap functions

This commit is contained in:
Felipe Magno de Almeida 2020-05-04 20:04:09 -03:00
parent 253f8eaa77
commit db2fe9bfcc
3 changed files with 5 additions and 5 deletions

View File

@ -6,9 +6,7 @@
#endif
#ifdef _MSC_VER
# ifndef EVIL_DLL
# define EVIL_API
# elif defined(EVIL_BUILD)
# ifdef EVIL_BUILD
# define EVIL_API __declspec(dllexport)
# else
# define EVIL_API __declspec(dllimport)

View File

@ -2,7 +2,7 @@
# include "config.h"
#endif /* HAVE_CONFIG_H */
#if 0
#include <evil_api.h>
#include <stdlib.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;
}
#endif

View File

@ -1,6 +1,8 @@
#ifndef __EVIL_SYS_MMAN_H__
#define __EVIL_SYS_MMAN_H__
#include <evil_api.h>
#include <sys/types.h>