Prevent double definition error when both OSDI and XSPICE are enabled.

This commit is contained in:
Holger Vogt 2022-11-12 19:37:04 +01:00 committed by Pascal Kuthe
parent 37e3a074c1
commit ae0988fbfe
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6
1 changed files with 2 additions and 0 deletions

View File

@ -409,6 +409,7 @@ static const char errstr_fmt[] =
"Unable to find message in dlerr(). System code = %lu";
static char errstr[sizeof errstr_fmt - 3 + 3 * sizeof(unsigned long)];
#if !defined (XSPICE)
char *dlerror(void) {
LPVOID lpMsgBuf;
@ -425,6 +426,7 @@ char *dlerror(void) {
return lpMsgBuf; /* Return the formatted message */
} /* end of function dlerror */
#endif
/* Free message related to dynamic loading */
static void free_dlerr_msg(char *msg) {