[Scummvm-git-logs] scummvm master -> 49d0d24968713a10ce44b34d8b6ba8d98dda23aa

sev- noreply at scummvm.org
Wed May 29 22:46:16 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
49d0d24968 COMMON: Add C++11 extension functions to forbidden symbols list


Commit: 49d0d24968713a10ce44b34d8b6ba8d98dda23aa
    https://github.com/scummvm/scummvm/commit/49d0d24968713a10ce44b34d8b6ba8d98dda23aa
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-05-30T00:45:44+02:00

Commit Message:
COMMON: Add C++11 extension functions to forbidden symbols list

Changed paths:
    common/forbidden.h


diff --git a/common/forbidden.h b/common/forbidden.h
index c4ad6ce0e23..a9362f61b4f 100644
--- a/common/forbidden.h
+++ b/common/forbidden.h
@@ -639,6 +639,30 @@
 #define strupr(a)	FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
 #endif
 
+// This is a C++11 extension not present on all platforms
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_strncpy_s
+#undef strncpy_s
+#define strncpy_s(a)	FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
+#endif
+
+// This is a C++11 extension not present on all platforms
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_sscanf_s
+#undef sscanf_s
+#define sscanf_s(a)	FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
+#endif
+
+// This is a C++11 extension not present on all platforms
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_fscanf_s
+#undef fscanf_s
+#define fscanf_s(a)	FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
+#endif
+
+// This is a C++11 extension not present on all platforms
+#ifndef FORBIDDEN_SYMBOL_EXCEPTION_scanf_s
+#undef scanf_s
+#define scanf_s(a)	FORBIDDEN_look_at_common_forbidden_h_for_more_info SYMBOL !%*
+#endif
+
 /*
  * We also would like to disable the following symbols;
  * however, these are also frequently used in regular code,




More information about the Scummvm-git-logs mailing list