|
From: <sm...@us...> - 2009-02-27 21:30:51
|
Revision: 9636
http://plplot.svn.sourceforge.net/plplot/?rev=9636&view=rev
Author: smekal
Date: 2009-02-27 21:30:47 +0000 (Fri, 27 Feb 2009)
Log Message:
-----------
Macros regarding dirent are now in plcore.c (dirent is only used here).
Modified Paths:
--------------
trunk/src/plcore.c
Modified: trunk/src/plcore.c
===================================================================
--- trunk/src/plcore.c 2009-02-27 21:29:55 UTC (rev 9635)
+++ trunk/src/plcore.c 2009-02-27 21:30:47 UTC (rev 9636)
@@ -45,6 +45,33 @@
#endif
#endif
+#if HAVE_DIRENT_H
+/* The following conditional is a workaround for a bug in the MacOSX system.
+ When the dirent.h file will be fixed upstream by Apple Inc, this should
+ go away. */
+# ifdef NEED_SYS_TYPE_H
+# include <sys/types.h>
+# endif
+# include <dirent.h>
+# define NAMLEN(dirent) strlen((dirent)->d_name)
+#else
+# if defined(_MSC_VER)
+# include "dirent_msvc.h"
+# else
+# define dirent direct
+# define NAMLEN(dirent) (dirent)->d_namlen
+# if HAVE_SYS_NDIR_H
+# include <sys/ndir.h>
+# endif
+# if HAVE_SYS_DIR_H
+# include <sys/dir.h>
+# endif
+# if HAVE_NDIR_H
+# include <ndir.h>
+# endif
+# endif
+#endif
+
#define BUFFER_SIZE 80
#define BUFFER2_SIZE 300
#define DRVSPEC_SIZE 400
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|