forked from github/server
Making this thing compile on windows.
This commit is contained in:
parent
71470c7fe2
commit
39d4c22186
|
@ -31,7 +31,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "iniparser.h"
|
||||
|
||||
|
@ -170,9 +169,9 @@ static void * mem_double(void * ptr, int size)
|
|||
|
||||
static unsigned dictionary_hash(const char * key)
|
||||
{
|
||||
int len ;
|
||||
unsigned hash ;
|
||||
int i ;
|
||||
size_t len ;
|
||||
unsigned int hash ;
|
||||
unsigned int i;
|
||||
|
||||
len = strlen(key);
|
||||
for (hash=0, i=0 ; i<len ; i++) {
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -560,6 +560,12 @@
|
|||
<File
|
||||
RelativePath=".\console.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\common\iniparser\iniparser.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\common\iniparser\iniparser.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\korrektur.c">
|
||||
<FileConfiguration
|
||||
|
|
|
@ -279,6 +279,12 @@
|
|||
<File
|
||||
RelativePath=".\gmtool.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\common\iniparser\iniparser.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\common\iniparser\iniparser.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\curses\listbox.c">
|
||||
</File>
|
||||
|
|
|
@ -124,10 +124,10 @@
|
|||
** global variables we are importing from other modules
|
||||
**/
|
||||
extern "C" {
|
||||
extern char * g_reportdir;
|
||||
extern char * g_datadir;
|
||||
extern char * g_basedir;
|
||||
extern char * g_resourcedir;
|
||||
extern const char * g_reportdir;
|
||||
extern const char * g_datadir;
|
||||
extern const char * g_basedir;
|
||||
extern const char * g_resourcedir;
|
||||
|
||||
extern boolean nonr;
|
||||
extern boolean nosh;
|
||||
|
|
Loading…
Reference in New Issue