COMMON: Forbid use of getcwd&getwd; add macro to enable unistd.h compatibility
This commit is contained in:
parent
a50c36d138
commit
2fa63ca015
13 changed files with 88 additions and 70 deletions
|
@ -25,9 +25,8 @@
|
|||
#if defined(UNIX)
|
||||
|
||||
// Re-enable some forbidden symbols to avoid clashes with stat.h and unistd.h.
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_chdir
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_mkdir
|
||||
#define FORBIDDEN_SYMBOL_EXCEPTION_unlink
|
||||
|
||||
#include "backends/fs/posix/posix-fs-factory.h"
|
||||
#include "backends/fs/posix/posix-fs.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue