Browse Source

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

pre-master-46
Holger Vogt 3 years ago
parent
commit
771155e463
  1. 2
      src/osdi/osdiregistry.c

2
src/osdi/osdiregistry.c

@ -401,6 +401,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;
@ -417,6 +418,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) {

Loading…
Cancel
Save