*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed September 17, 2020 at 03:10:47 PM by AutoGen 5.18
+ * It has been AutoGen-ed October 3, 2020 at 11:40:52 PM by AutoGen 5.18
* From the definitions inclhack.def
* and the template file fixincl
*/
-/* DO NOT SVN-MERGE THIS FILE, EITHER Thu Sep 17 15:10:47 UTC 2020
+/* DO NOT SVN-MERGE THIS FILE, EITHER Sat Oct 3 23:40:52 UTC 2020
*
* You must regenerate it. Use the ./genfixes script.
*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_MallocSelect0[] =
- "#ifdef __cplusplus";
+ "#ifdef __cplusplus\n\
+extern \"C\" \\{\n\
+[ \t]extern \"builtin\" char \\*__alloca \\(size_t\\);";
#define AIX_MALLOC_TEST_CT 1
static tTestDesc aAix_MallocTests[] = {
*/
static const char* apzAix_MallocPatch[] = {
"format",
- "#if (defined(__cplusplus) && defined(__IBMCPP__))",
+ "#if (defined(__cplusplus) && defined(__IBMCPP__))\n\
+extern \"C\" {\n\
+\textern \"builtin\" char *__alloca (size_t);",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
hackname = aix_malloc;
mach = "*-*-aix*";
files = "malloc.h";
- select = "#ifdef __cplusplus";
+ select = "#ifdef __cplusplus\n"
+ "extern \"C\" \\{\n"
+ "[ \t]extern \"builtin\" char \\*__alloca \\(size_t\\);";
c_fix = format;
- c_fix_arg = "#if (defined(__cplusplus) && defined(__IBMCPP__))";
- test_text = "#ifdef __cplusplus";
+ c_fix_arg = "#if (defined(__cplusplus) && defined(__IBMCPP__))\n"
+ "extern \"C\" {\n"
+ "\textern \"builtin\" char *__alloca (size_t);";
+ test_text = "#ifdef __cplusplus\n"
+ "extern \"C\" {\n"
+ "\textern \"builtin\" char *__alloca (size_t);";
};
/*
#if defined( AIX_MALLOC_CHECK )
#if (defined(__cplusplus) && defined(__IBMCPP__))
+extern "C" {
+ extern "builtin" char *__alloca (size_t);
#endif /* AIX_MALLOC_CHECK */