summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
diff options
context:
space:
mode:
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in16
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 44232da7a16..0c134671ec7 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -174,16 +174,8 @@ def have_library(lib, func="main")
#include <windows.h>
#include <winsock.h>
int main() { return 0; }
-int t() { #{func}(); return 0; }
-SRC
- unless r
- r = try_link(<<"SRC", libs)
-#include <windows.h>
-#include <winsock.h>
-int main() { return 0; }
int t() { void ((*p)()); p = (void ((*)()))#{func}; return 0; }
SRC
- end
else
r = try_link(<<"SRC", libs)
int main() { return 0; }
@@ -226,16 +218,8 @@ def have_func(func)
#include <windows.h>
#include <winsock.h>
int main() { return 0; }
-int t() { #{func}(); return 0; }
-SRC
- unless r
- r = try_link(<<"SRC", libs)
-#include <windows.h>
-#include <winsock.h>
-int main() { return 0; }
int t() { void ((*p)()); p = (void ((*)()))#{func}; return 0; }
SRC
- end
else
r = try_link(<<"SRC", libs)
int main() { return 0; }