diff options
author | Sven Gothel <[email protected]> | 2022-08-02 06:56:00 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-08-02 06:56:00 +0200 |
commit | b2c4fc9642cad18fea56d856e9750c892c457729 (patch) | |
tree | 3d1af44b98291ba7f675d1be5dac1f482f3356b8 /test/test_fileutils01.cpp | |
parent | b01d1571bd707e1c7ebacce3cd959ec3f6f8c710 (diff) |
test_fileutils01.cpp: Use extern "C" linkage for C-includes
Diffstat (limited to 'test/test_fileutils01.cpp')
-rw-r--r-- | test/test_fileutils01.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/test_fileutils01.cpp b/test/test_fileutils01.cpp index d26ac66..4629ad6 100644 --- a/test/test_fileutils01.cpp +++ b/test/test_fileutils01.cpp @@ -24,11 +24,13 @@ #include "test_fileutils_copy_r_p.hpp" -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -#include <sys/wait.h> -#include <unistd.h> +extern "C" { + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> + #include <sys/wait.h> + #include <unistd.h> +} #include <fstream> #include <iostream> |