mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
Define LUASOCKET_API macro in header file instead of build time argument
--HG-- branch : minor
This commit is contained in:
@@ -18,7 +18,11 @@
|
|||||||
* This macro prefixes all exported API functions
|
* This macro prefixes all exported API functions
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
#ifndef LUASOCKET_API
|
#ifndef LUASOCKET_API
|
||||||
#define LUASOCKET_API extern
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
|
# define LUASOCKET_API __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
# define LUASOCKET_API __attribute__((visibility("default")))
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include "lua.h"
|
#include "lua.h"
|
||||||
#include "lauxlib.h"
|
#include "lauxlib.h"
|
||||||
|
#include "luasocket.h"
|
||||||
|
|
||||||
#include "auxiliar.h"
|
#include "auxiliar.h"
|
||||||
#include "socket.h"
|
#include "socket.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user