diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-31 03:10:07 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-31 03:10:07 +0000 |
| commit | 9a8a22cd0fb59c99c69b11a130a30066624c9d13 (patch) | |
| tree | 813d68b48b4967d5f0e0fadc8e9386cb49a5e85a /ext | |
| parent | 4a1e525537077b198e8be1a2560963f80a723cca (diff) | |
| download | ruby-9a8a22cd0fb59c99c69b11a130a30066624c9d13.tar.gz ruby-9a8a22cd0fb59c99c69b11a130a30066624c9d13.tar.xz ruby-9a8a22cd0fb59c99c69b11a130a30066624c9d13.zip | |
2000-05-31
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb.in | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 44232da7a..0c134671e 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; } |
