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
#ifndef HAVE_STRCASESTR
extern char * strcasestr(char* haystack, char* needle);
extern char *strcasestr(char* haystack, char* needle);
#endif
#ifndef HAVE_STRPTIME
char * strptime( char *buf, char *fmt, struct tm *tm );
extern char *strptime(char *buf, char *fmt, struct tm *tm );
#endif
#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
#ifndef HAVE_TIMEGM

View File

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

View File

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

View File

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

View File

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