summaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def12
1 files changed, 12 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index d4637470d7a..ea879b73bad 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -1269,6 +1269,18 @@ fix = {
test_text = '#define vfscanf __svfscanf';
};
+fix = {
+ hackname = apple_local_stdio_fn_deprecation;
+ mach = "*-*-*darwin2*";
+ files = stdio.h;
+ select = "__deprecated_msg([^\n]*)$";
+ c_fix = format;
+ c_fix_arg = "#if defined(__APPLE_LOCAL_DEPRECATIONS)\n"
+ "%0\n"
+ "#endif";
+ test_text = '__deprecated_msg("This function is provided for compat...")';
+};
+
/*
* Fix various macros used to define ioctl numbers.
* The traditional syntax was: