summary refs log tree commit diff
path: root/posix/glob.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-21 01:55:51 +0000
committerRoland McGrath <roland@gnu.org>1996-07-21 01:55:51 +0000
commited30638ace1966555acc08568500709df99beafc (patch)
tree3a0d40aa78bef0e828397aeb0f122169fcc4e50d /posix/glob.h
parent5764121c46f961be40559886031cbc044544a987 (diff)
downloadglibc-ed30638ace1966555acc08568500709df99beafc.tar.gz
glibc-ed30638ace1966555acc08568500709df99beafc.tar.xz
glibc-ed30638ace1966555acc08568500709df99beafc.zip
Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
	Win32 hacks from <Rob_Tulloh@tivoli.com>.
	* posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
	use void * for my_realloc; include <malloc.h> for alloca.
	(glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
	* posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
	* posix/glob.h: Likewise.
Diffstat (limited to 'posix/glob.h')
-rw-r--r--posix/glob.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/glob.h b/posix/glob.h
index ba24d890c4..571bd5e405 100644
--- a/posix/glob.h
+++ b/posix/glob.h
@@ -25,7 +25,8 @@ extern "C"
 #endif
 
 #undef	__ptr_t
-#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
+#if (defined (__cplusplus) || (defined (__STDC__) && __STDC__) \
+     || defined (WIN32))
 #undef	__P
 #define	__P(protos)	protos
 #define	__ptr_t	void *