mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +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
|
||||
\*-------------------------------------------------------------------------*/
|
||||
#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
|
||||
|
||||
/*-------------------------------------------------------------------------*\
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "lua.h"
|
||||
#include "lauxlib.h"
|
||||
#include "luasocket.h"
|
||||
|
||||
#include "auxiliar.h"
|
||||
#include "socket.h"
|
||||
|
||||
Reference in New Issue
Block a user