mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 13:05:35 +08:00
Set correct preprocessor condition for when the content of file src/scandir_posix.c is necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11603 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#if defined(USE_X11) && !defined(HAVE_SCANDIR)
|
||||||
|
|
||||||
#ifndef HAVE_PTHREAD
|
#ifndef HAVE_PTHREAD
|
||||||
/* Switch system headers into POSIX.1-1990 mode */
|
/* Switch system headers into POSIX.1-1990 mode */
|
||||||
# define _POSIX_SOURCE
|
# define _POSIX_SOURCE
|
||||||
@@ -201,6 +203,8 @@ fl_scandir(const char *dir, struct dirent ***namelist,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // defined(USE_X11) && !defined(HAVE_SCANDIR)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* End of "$Id$".
|
* End of "$Id$".
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user