summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-11-06 10:17:00 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:51 +0200
commitc9aaf2f0d55451a0a3d25c1212f4c9c4119e1aa4 (patch)
tree45b3ddb83428b5e8861793c232a055c45e503a32 /dyn_load.c
parentc3014dd71e141b940df7d06c3d08f17085a62a37 (diff)
2009-11-06 Ivan Maidanski <ivmai@mail.ru>
* dyn_load.c (WIN32_LEAN_AND_MEAN): Guard with ifndef. * misc.c (WIN32_LEAN_AND_MEAN): Ditto. * os_dep.c (WIN32_LEAN_AND_MEAN): Ditto. * allchblk.c (GC_allochblk_nth): Fix a minor typo (don't/doesn't) in a comment. * backgraph.c: Ditto. * dyn_load.c (GC_register_dynamic_libraries): Ditto. * extra/threadlibs.c (main): Ditto. * pthread_support.c (pthread_join): Ditto. * tests/test.c (main): Ditto.
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dyn_load.c b/dyn_load.c
index ccb08d5..ee50807 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -772,7 +772,7 @@ GC_INNER void GC_register_dynamic_libraries(void)
}
/* Don't keep cached descriptor, for now. Some kernels don't like us */
/* to keep a /proc file descriptor around during kill -9. */
- if (close(fd) < 0) ABORT("Couldnt close /proc file");
+ if (close(fd) < 0) ABORT("Couldn't close /proc file");
fd = -1;
}
@@ -780,7 +780,9 @@ GC_INNER void GC_register_dynamic_libraries(void)
# if defined(MSWIN32) || defined(MSWINCE) || defined(CYGWIN32)
-# define WIN32_LEAN_AND_MEAN
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
# define NOSERVICE
# include <windows.h>
# include <stdlib.h>