forked from enlightenment/efl
windows: Create an evil_eapi.h to define EAPI
This commit is contained in:
parent
641a58ebba
commit
8ceea9ce08
|
@ -0,0 +1,18 @@
|
|||
#ifndef EVIL_EAPI
|
||||
#define EVIL_EAPI
|
||||
|
||||
#ifdef EAPI
|
||||
# undef EAPI
|
||||
#endif
|
||||
|
||||
#ifdef EFL_BUILD
|
||||
# ifdef DLL_EXPORT
|
||||
# define EAPI __declspec(dllexport)
|
||||
# else
|
||||
# define EAPI
|
||||
# endif
|
||||
#else
|
||||
# define EAPI __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -30,19 +30,8 @@ extern "C" {
|
|||
#include <sys/stat.h> /* for mkdir in evil_macro_wrapper */
|
||||
|
||||
|
||||
#ifdef EAPI
|
||||
# undef EAPI
|
||||
#endif
|
||||
#include "evil_eapi.h"
|
||||
|
||||
#ifdef EFL_BUILD
|
||||
# ifdef DLL_EXPORT
|
||||
# define EAPI __declspec(dllexport)
|
||||
# else
|
||||
# define EAPI
|
||||
# endif
|
||||
#else
|
||||
# define EAPI __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#ifndef PATH_MAX
|
||||
# define PATH_MAX MAX_PATH
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef __EVIL_UNISTD_H__
|
||||
#define __EVIL_UNISTD_H__
|
||||
|
||||
#include "evil_eapi.h"
|
||||
|
||||
/**
|
||||
* @file evil_unistd.h
|
||||
|
|
Loading…
Reference in New Issue