summaryrefslogtreecommitdiff
path: root/src/poison.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/poison.hpp')
-rw-r--r--src/poison.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/poison.hpp b/src/poison.hpp
index e7cc4cc..d4a6cd0 100644
--- a/src/poison.hpp
+++ b/src/poison.hpp
@@ -1,3 +1,5 @@
+#ifndef GENERATING_DEPENDENCIES
+
// impossible(*) to use safely
// removed in C11
#pragma GCC poison gets
@@ -85,3 +87,15 @@
#pragma GCC poison tolower
#pragma GCC poison isupper
#pragma GCC poison islower
+
+// in favor of io::ReadFile and io::WriteFile
+// note that stdout and stderr are NOT poisoned (yet)
+#pragma GCC poison FILE
+#pragma GCC poison istream
+#pragma GCC poison ostream
+#pragma GCC poison iostream
+#pragma GCC poison ifstream
+#pragma GCC poison ofstream
+#pragma GCC poison fstream
+
+#endif // GENERATING_DEPENDENCIES