diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-20 10:23:57 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-20 10:23:57 +0000 |
commit | 7ddf0d673dbb0dbcb6b534db92da5797b9c22ba6 (patch) | |
tree | 90d2dc9a52104a8a8120c82c6c164fd3f868085a /uisimulator/win32 | |
parent | 18d5d30c1c7aa62adb376025be60da792b8db2ca (diff) | |
download | rockbox-7ddf0d673dbb0dbcb6b534db92da5797b9c22ba6.tar.gz rockbox-7ddf0d673dbb0dbcb6b534db92da5797b9c22ba6.zip |
Reworked the time get/set functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32')
-rw-r--r-- | uisimulator/win32/Makefile | 6 | ||||
-rw-r--r-- | uisimulator/win32/timefuncs.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile index fe7086391b..05acb9c41c 100644 --- a/uisimulator/win32/Makefile +++ b/uisimulator/win32/Makefile @@ -97,7 +97,8 @@ else LCDSRSC = lcd-playersim.c lcd-player.c lcd-player-charset.c font-player.c endif FIRMSRCS = $(LCDSRSC) id3.c mp3data.c usb.c mpeg.c mp3_playback.c \ - powermgmt.c power.c sprintf.c buffer.c lcd-common.c strtok.c random.c + powermgmt.c power.c sprintf.c buffer.c lcd-common.c strtok.c random.c \ + timefuncs.c APPS = main.c tree.c menu.c credits.c main_menu.c icons.c language.c \ playlist.c wps.c wps-display.c settings.c status.c \ @@ -284,6 +285,9 @@ $(OBJDIR)/sprintf.o: $(COMMON)/sprintf.c $(OBJDIR)/strtok.o: $(COMMON)/strtok.c $(CC) $(CFLAGS) -c $< -o $@ +$(OBJDIR)/timefuncs.o: $(COMMON)/timefuncs.c + $(CC) $(CFLAGS) -c $< -o $@ + $(OBJDIR)/stubs.o: $(SIMCOMMON)/stubs.c $(CC) $(CFLAGS) -c $< -o $@ diff --git a/uisimulator/win32/timefuncs.h b/uisimulator/win32/timefuncs.h index c1b6ef8196..59e8b249eb 100644 --- a/uisimulator/win32/timefuncs.h +++ b/uisimulator/win32/timefuncs.h @@ -1,4 +1,7 @@ #include <time.h> +#include <stdbool.h> /* struct tm defined */ struct tm *get_time(void); +int set_time(struct tm *tm); +bool valid_time(struct tm *tm); |