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 <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#include "iniparser.h"
|
#include "iniparser.h"
|
||||||
|
|
||||||
|
@ -170,9 +169,9 @@ static void * mem_double(void * ptr, int size)
|
||||||
|
|
||||||
static unsigned dictionary_hash(const char * key)
|
static unsigned dictionary_hash(const char * key)
|
||||||
{
|
{
|
||||||
int len ;
|
size_t len ;
|
||||||
unsigned hash ;
|
unsigned int hash ;
|
||||||
int i ;
|
unsigned int i;
|
||||||
|
|
||||||
len = strlen(key);
|
len = strlen(key);
|
||||||
for (hash=0, i=0 ; i<len ; i++) {
|
for (hash=0, i=0 ; i<len ; i++) {
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -560,6 +560,12 @@
|
||||||
<File
|
<File
|
||||||
RelativePath=".\console.h">
|
RelativePath=".\console.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\common\iniparser\iniparser.c">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\common\iniparser\iniparser.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\korrektur.c">
|
RelativePath=".\korrektur.c">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
|
|
|
@ -279,6 +279,12 @@
|
||||||
<File
|
<File
|
||||||
RelativePath=".\gmtool.c">
|
RelativePath=".\gmtool.c">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\common\iniparser\iniparser.c">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\common\iniparser\iniparser.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\curses\listbox.c">
|
RelativePath=".\curses\listbox.c">
|
||||||
</File>
|
</File>
|
||||||
|
|
|
@ -124,10 +124,10 @@
|
||||||
** global variables we are importing from other modules
|
** global variables we are importing from other modules
|
||||||
**/
|
**/
|
||||||
extern "C" {
|
extern "C" {
|
||||||
extern char * g_reportdir;
|
extern const char * g_reportdir;
|
||||||
extern char * g_datadir;
|
extern const char * g_datadir;
|
||||||
extern char * g_basedir;
|
extern const char * g_basedir;
|
||||||
extern char * g_resourcedir;
|
extern const char * g_resourcedir;
|
||||||
|
|
||||||
extern boolean nonr;
|
extern boolean nonr;
|
||||||
extern boolean nosh;
|
extern boolean nosh;
|
||||||
|
|
Loading…
Reference in New Issue