Files
2026-08-07 17:38:18 +09:00

42 lines
845 B
C

/* (c) D.Souflis dsouflis@acm.org */
#ifndef _WINSTUBDL_H
#define _WINSTUBDL_H
#ifdef WIN32
# define WIN32DLL_DEFINE __declspec( dllexport)
#else
# define WIN32DLL_DEFINE
#endif
#ifdef WIN32_DLOPEN
#include <windows.h>
#ifndef RTLD_LAZY
# define RTLD_LAZY 1
#endif
void *dlopen(const char *module, int unused);
void* dlsym(void* mo, const char *proc);
void dlclose(void* mo);
#endif
// windows 버전 컴파일을 위한 설정
#ifdef WIN32
#define STDC_HEADERS
#define SIZEOF_UNSIGNED_INT 4
#define SIZEOF_UNSIGNED_SHORT_INT 2
#define SIZEOF_UNSIGNED_CHAR 1
#define HAVE_MEMSET
#define HAVE_MEMMOVE
#define LIBDIR "lib"
//dll 아닌 lib 지원을 위한 셋팅
#ifdef WIN32DLL_DEFINE
#undef WIN32DLL_DEFINE
#define WIN32DLL_DEFINE
#endif
#define inline __inline
#endif // WIN32
// windows 버전 컴파일을 위한 설정
#endif