Fix compilation of security libary on mingw

https://github.com/Hamlib/Hamlib/issues/813
This commit is contained in:
Mike Black W9MDB 2022-02-24 17:28:55 -06:00
parent fb16f22631
commit 9ba2b4502c
2 changed files with 5 additions and 1 deletions

View File

@ -22,10 +22,11 @@
#include <stdio.h>
#include <iconv.h>
#include <langinfo.h>
//#include <langinfo.h>
#include <errno.h>
#include "password.h"
#ifdef NOTWORKING
/*
* passwd_to_utf16
*
@ -82,4 +83,5 @@ int passwd_to_utf16(char *in_passwd,
iconv_close(condesc);
return (max_length - ic_outbytesleft);
}
#endif

View File

@ -20,6 +20,7 @@
#define MAX_PASSWD_LEN 1024
#ifdef NOTWORKING
/*
* Function Prototypes
*/
@ -27,5 +28,6 @@ int passwd_to_utf16(char *in_passwd,
int length,
int max_length,
char *out_passwd);
#endif
#endif /* __STRINGCRYPT_PASSWORD_H */