diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-06-29 23:45:48 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-06-29 23:45:48 +0000 |
commit | dce7b4baa78f8b0ad3725af4460ac450c58e003e (patch) | |
tree | 2e873f9412cb8d9c6a998a63223f504779347c8b | |
parent | 66a5baf77798bbf9dbfe1d7ddf6c591843d831c7 (diff) | |
download | dlfcn-win32-r8.tar.gz dlfcn-win32-r8.tar.bz2 dlfcn-win32-r8.zip |
Proper check for Windows API functions in configure.r8
-rwxr-xr-x | configure | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -115,14 +115,15 @@ disabled shared && disabled static && { | |||
115 | 115 | ||
116 | # simple cc test | 116 | # simple cc test |
117 | cat > /tmp/test.c << EOF | 117 | cat > /tmp/test.c << EOF |
118 | int function(void) | 118 | #include <windows.h> |
119 | { return 0; } | 119 | void function(void) |
120 | { LoadLibrary(NULL); } | ||
120 | EOF | 121 | EOF |
121 | $cc -shared -o /tmp/test.dll /tmp/test.c | 122 | $cc -shared -o /tmp/test.dll /tmp/test.c |
122 | 123 | ||
123 | test "$?" = !0 && { | 124 | test "$?" = !0 && { |
124 | echo "$cc could not create shared file."; | 125 | echo "$cc could not create shared file with Windows API functions."; |
125 | echo "Make sure your system is working properly."; | 126 | echo "Make sure your MinGW system is working properly."; |
126 | exit 1; | 127 | exit 1; |
127 | } | 128 | } |
128 | 129 | ||