forked from len0rd/rockbox
Revert r25854 which was bad for the database tool (I forgot it still needs the wrappers from uisimulator/common/io.c). Fix it so it works for both.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25856 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ab4a162763
commit
6ac64206f3
4 changed files with 4 additions and 11 deletions
|
@ -25,9 +25,6 @@
|
||||||
#undef MAX_PATH /* this avoids problems when building simulator */
|
#undef MAX_PATH /* this avoids problems when building simulator */
|
||||||
#define MAX_PATH 260
|
#define MAX_PATH 260
|
||||||
|
|
||||||
#ifdef __PCTOOL__
|
|
||||||
#include <fcntl.h>
|
|
||||||
#else
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "_ansi.h"
|
#include "_ansi.h"
|
||||||
|
|
||||||
|
@ -88,7 +85,7 @@ static inline int creat(const char *pathname, mode_t mode)
|
||||||
(void)mode;
|
(void)mode;
|
||||||
return file_creat(pathname);
|
return file_creat(pathname);
|
||||||
}
|
}
|
||||||
#if !defined(CODEC) && !defined(PLUGIN)
|
#if !defined(CODEC) && !defined(PLUGIN) && !defined(__PCTOOL__)
|
||||||
#define open(x, y, ...) file_open(x,y)
|
#define open(x, y, ...) file_open(x,y)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -100,4 +97,3 @@ extern off_t filesize(int fd);
|
||||||
extern int release_files(int volume);
|
extern int release_files(int volume);
|
||||||
int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3);
|
int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
|
@ -29,10 +29,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <sprintf.h>
|
|
||||||
#include <system.h>
|
|
||||||
#include <font.h>
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "system.h"
|
||||||
|
#include "font.h"
|
||||||
#include "lcd-remote.h"
|
#include "lcd-remote.h"
|
||||||
#include "logf.h"
|
#include "logf.h"
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
|
|
|
@ -8,8 +8,6 @@ database.c
|
||||||
../../apps/mp3data.c
|
../../apps/mp3data.c
|
||||||
../../apps/tagcache.c
|
../../apps/tagcache.c
|
||||||
../../firmware/common/crc32.c
|
../../firmware/common/crc32.c
|
||||||
../../firmware/common/ctype.c
|
|
||||||
../../firmware/common/errno.c
|
|
||||||
../../firmware/common/strlcpy.c
|
../../firmware/common/strlcpy.c
|
||||||
../../firmware/common/strcasestr.c
|
../../firmware/common/strcasestr.c
|
||||||
../../firmware/common/structec.c
|
../../firmware/common/structec.c
|
||||||
|
|
|
@ -40,7 +40,7 @@ GCCOPTS+=`$(SDLCONFIG) --cflags`
|
||||||
OLDGCCOPTS:=$(GCCOPTS)
|
OLDGCCOPTS:=$(GCCOPTS)
|
||||||
GCCOPTS+=-D__PCTOOL__ $(FIRMINC) $(SIMINCLUDES)
|
GCCOPTS+=-D__PCTOOL__ $(FIRMINC) $(SIMINCLUDES)
|
||||||
|
|
||||||
LIBS=`$(SDLCONFIG) --libs`
|
LIBS=`$(SDLCONFIG) --libs` -lc
|
||||||
ifneq ($(findstring MINGW,$(shell uname)),MINGW)
|
ifneq ($(findstring MINGW,$(shell uname)),MINGW)
|
||||||
LIBS += -ldl
|
LIBS += -ldl
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue