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
7
1
#include <sys/stat.h>
8
2
#include <dirent.h>
9
3
@@ -18,5 +12,3 @@ const char *get_d_name(struct dirent *d)
18
12
{
19
13
return (const char * ) d -> d_name ;
20
14
}
21
-
22
- #endif
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module fpm_filesystem
17
17
18
18
integer , parameter :: LINE_BUFFER_LEN = 1000
19
19
20
- #ifdef ENABLE_C_WRAPPER
20
+ #ifndef FPM_BOOTSTRAP
21
21
interface
22
22
function c_opendir (dir ) result(r) bind(c, name= " opendir" )
23
23
import c_char, c_ptr
@@ -345,7 +345,7 @@ subroutine mkdir(dir)
345
345
end if
346
346
end subroutine mkdir
347
347
348
- #ifdef ENABLE_C_WRAPPER
348
+ #ifndef FPM_BOOTSTRAP
349
349
! > Get file & directory names in directory `dir` using iso_c_binding.
350
350
! !
351
351
! ! - File/directory names return are relative to cwd, ie. preprended with `dir`
You can’t perform that action at this time.
0 commit comments