summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/common/string/strstr.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-08-04 22:08:07 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-08-04 22:08:07 +0000
commitedb3ae338fb0545cd4c7b3c80a1153c9e72b979f (patch)
treee9e7fef51287b6ef40b206b25fd17ffa8e6b9aa5 /src/VBox/Runtime/common/string/strstr.cpp
parent23b13011c320c98284b74b704bc0a601f8cd5f13 (diff)
downloadVirtualBox-svn-edb3ae338fb0545cd4c7b3c80a1153c9e72b979f.tar.gz
IPRT,/Config.kmk,iprt/asmdefs.mac,Add/3D/Config.kmk: Generate weak CRT name aliases for nocrt_xxx function using genalias on Windows (, OS/2 and possibly macOS), while for ELF targets we'll use a RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL/RT_NOCRT_BEGINPROC macros with the function definition. bugref:10261
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@96043 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/common/string/strstr.cpp')
-rw-r--r--src/VBox/Runtime/common/string/strstr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/VBox/Runtime/common/string/strstr.cpp b/src/VBox/Runtime/common/string/strstr.cpp
index 18eec0cc041..f038d3406f1 100644
--- a/src/VBox/Runtime/common/string/strstr.cpp
+++ b/src/VBox/Runtime/common/string/strstr.cpp
@@ -28,6 +28,7 @@
/*********************************************************************************************************************************
* Header Files *
*********************************************************************************************************************************/
+#include "internal/iprt.h"
#include <iprt/string.h>
@@ -39,7 +40,8 @@
* @param pszString Zero terminated string to search.
* @param pszSubStr The substring to search for.
*/
-char *strstr(const char *pszString, const char *pszSubStr)
+#undef strstr
+char *RT_NOCRT(strstr)(const char *pszString, const char *pszSubStr)
{
char const ch0Sub = *pszSubStr;
pszString = strchr(pszString, ch0Sub);
@@ -58,4 +60,5 @@ char *strstr(const char *pszString, const char *pszSubStr)
}
return NULL;
}
+RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(strstr);