Making this thing compile on windows.

This commit is contained in:
Enno Rehling 2006-11-22 21:59:24 +00:00
parent 71470c7fe2
commit 39d4c22186
5 changed files with 19 additions and 9 deletions

View File

@ -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++) {

View File

@ -33,7 +33,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#ifdef __cplusplus

View File

@ -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

View File

@ -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>

View 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;