Permalink
Browse files

removed dirname from replace.h as a temporary measure - most platform…

…s have it, and its ambiguity was killing builds on common platforms
  • Loading branch information...
1 parent a3b61d9 commit e22456a3deb40195d74ca9686d4548da56eef04e rtv committed Oct 20, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 replace/replace.h
View
@@ -84,12 +84,20 @@ int poll (struct pollfd *fds, unsigned long int nfds, int timeout);
// int (*compar)(const struct dirent **, const struct dirent **));
//#endif //!HAVE_SCANDIR
+ /*
+
#if !HAVE_DIRNAME
char * dirname (char *path);
#else
#include <libgen.h> // for dirname(3)
#endif // !HAVE_DIRNAME
+#if !HAVE_BASENAME
+ const char * basename (const char* filename);
+#else
+ #include <libgen.h> // for basename(3)
+#endif // !HAVE_BASENAME
+ */
#ifdef __cplusplus
}

0 comments on commit e22456a

Please sign in to comment.