aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-09-02 18:23:46 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-09-02 18:23:46 +1000
commite64b1166f5b4e205002112d341be112f3154acf6 (patch)
tree3df9e6573953a85ee722f4db12f1df1aa7628592
parent16f04179e269b58ca811e1e4073e9546096a3603 (diff)
downloadluaossl-e64b1166f5b4e205002112d341be112f3154acf6.tar.gz
luaossl-e64b1166f5b4e205002112d341be112f3154acf6.tar.bz2
luaossl-e64b1166f5b4e205002112d341be112f3154acf6.zip
Don't use #pragma for linker options
Instead require user to pass libraries to linker via build system
-rw-r--r--src/openssl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 726cba3..e5f0cd4 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -41,11 +41,8 @@
#include <winsock2.h> /* AF_INET, AF_INET6 */
#include <inaddr.h> /* struct in_addr, struct in6_addr */
#include <ws2tcpip.h> /* inet_pton */
-#pragma comment(lib, "ws2_32.lib")
#include <wincrypt.h> /* CryptAcquireContext(), CryptGenRandom(), CryptReleaseContext() */
-#pragma comment(lib, "advapi32.lib")
#include <windows.h> /* CreateMutex(), GetLastError(), GetModuleHandleEx(), GetProcessTimes(), InterlockedCompareExchangePointer() */
-#pragma comment(lib, "kernel32.lib")
#define EXPORT __declspec (dllexport)
#else
#include <arpa/inet.h> /* inet_pton(3) */