update autoconf for latest compat functions
This commit is contained in:
13
crypto/compat/getprogname_windows.c
Normal file
13
crypto/compat/getprogname_windows.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
const char *
|
||||
getprogname(void)
|
||||
{
|
||||
static char progname[MAX_PATH + 1];
|
||||
DWORD length = GetModuleFileName(NULL, progname, sizeof (progname) - 1);
|
||||
if (length < 0)
|
||||
return "?";
|
||||
return progname;
|
||||
}
|
Reference in New Issue
Block a user