File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 1- /* FIXME: fpm --flag '-DENABLE_C_WRAPPER' currently doesn't work with .c files. Use #if..#endif below for the time being. */
2- #if ((defined(_WIN32 ) && (defined(__MINGW32__ ) || defined(__MINGW64__ ))) || defined(__linux__ ) || defined(__APPLE__ ) || defined(__OpenBSD__ ))
3- #define ENABLE_C_WRAPPER
4- #endif
5-
6- #ifdef ENABLE_C_WRAPPER
71#include <sys/stat.h>
82#include <dirent.h>
93
@@ -18,5 +12,3 @@ const char *get_d_name(struct dirent *d)
1812{
1913 return (const char * ) d -> d_name ;
2014}
21-
22- #endif
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module fpm_filesystem
1717
1818 integer , parameter :: LINE_BUFFER_LEN = 1000
1919
20- #ifdef ENABLE_C_WRAPPER
20+ #ifndef FPM_BOOTSTRAP
2121 interface
2222 function c_opendir (dir ) result(r) bind(c, name= " opendir" )
2323 import c_char, c_ptr
@@ -345,7 +345,7 @@ subroutine mkdir(dir)
345345 end if
346346end subroutine mkdir
347347
348- #ifdef ENABLE_C_WRAPPER
348+ #ifndef FPM_BOOTSTRAP
349349! > Get file & directory names in directory `dir` using iso_c_binding.
350350! !
351351! ! - File/directory names return are relative to cwd, ie. preprended with `dir`
You can’t perform that action at this time.
0 commit comments