Bring win32 up to date with compat changes

This commit is contained in:
Ron Pedde 2006-04-15 22:39:45 +00:00
parent 4e40b62b78
commit 7907540aa5
5 changed files with 19 additions and 15 deletions

View File

@ -6,15 +6,16 @@
#endif #endif
#ifndef HAVE_STRCASESTR #ifndef HAVE_STRCASESTR
extern char * strcasestr(char* haystack, char* needle); extern char *strcasestr(char* haystack, char* needle);
#endif #endif
#ifndef HAVE_STRPTIME #ifndef HAVE_STRPTIME
char * strptime( char *buf, char *fmt, struct tm *tm ); extern char *strptime(char *buf, char *fmt, struct tm *tm );
#endif #endif
#ifndef HAVE_STRTOK_R #ifndef HAVE_STRTOK_R
extern char *strtok_r(char *s, const char *delim, char **last); #undef strtok_r /* defend against win32 pthreads */
extern char *strtok_r(char *s, char *delim, char **last);
#endif #endif
#ifndef HAVE_TIMEGM #ifndef HAVE_TIMEGM

View File

@ -2,11 +2,15 @@
* *
*/ */
#include <errno.h> #ifdef HAVE_CONFIG_H
#include <pthread.h> # include "config.h"
#include <stdlib.h> #endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h> #include <time.h>
#include <pthread.h>
#include "daapd.h" #include "daapd.h"
#include "win32.h" #include "win32.h"

View File

@ -32,6 +32,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include "daapd.h"
#include "db-generic.h" #include "db-generic.h"
#include "err.h" #include "err.h"
#include "mp3-scanner.h" #include "mp3-scanner.h"

View File

@ -19,6 +19,7 @@
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#include "daapd.h"
#include "err.h" #include "err.h"
#ifdef HAVE_SQL #ifdef HAVE_SQL

View File

@ -123,6 +123,9 @@
Name="Source Files" Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath="..\src\compat.c">
</File>
<File <File
RelativePath="..\src\conf.c"> RelativePath="..\src\conf.c">
</File> </File>
@ -204,15 +207,6 @@
<File <File
RelativePath="..\src\ssc.c"> RelativePath="..\src\ssc.c">
</File> </File>
<File
RelativePath="..\src\strcasestr.c">
</File>
<File
RelativePath="..\src\strptime.c">
</File>
<File
RelativePath="..\src\strtok_r.c">
</File>
<File <File
RelativePath="..\src\w32-eventlog.c"> RelativePath="..\src\w32-eventlog.c">
</File> </File>
@ -230,6 +224,9 @@
Name="Header Files" Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd" Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath="..\src\conf.h">
</File>
<File <File
RelativePath=".\config.h"> RelativePath=".\config.h">
</File> </File>