Commits

Armin Rigo  committed 7673342

Add dlerror() for windows.

  • Participants
  • Parent commits ec097c3

Comments (0)

Files changed (1)

File c/misc_win32.h

     FreeLibrary((HMODULE)handle);
 }
 
+static const char *dlerror(void)
+{
+    static char buf[32];
+    DWORD dw = GetLastError(); 
+    if (dw == 0)
+        return NULL;
+    sprintf(buf, "error 0x%x", (unsigned int)dw);
+    return buf;
+}
+
 
 /************************************************************/
 /* obscure */