summaryrefslogtreecommitdiff
path: root/uisimulator/win32
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32')
-rw-r--r--uisimulator/win32/Makefile6
-rw-r--r--uisimulator/win32/timefuncs.h3
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
97 LCDSRSC = lcd-playersim.c lcd-player.c lcd-player-charset.c font-player.c 97 LCDSRSC = lcd-playersim.c lcd-player.c lcd-player-charset.c font-player.c
98endif 98endif
99FIRMSRCS = $(LCDSRSC) id3.c mp3data.c usb.c mpeg.c mp3_playback.c \ 99FIRMSRCS = $(LCDSRSC) id3.c mp3data.c usb.c mpeg.c mp3_playback.c \
100 powermgmt.c power.c sprintf.c buffer.c lcd-common.c strtok.c random.c 100 powermgmt.c power.c sprintf.c buffer.c lcd-common.c strtok.c random.c \
101 timefuncs.c
101 102
102APPS = main.c tree.c menu.c credits.c main_menu.c icons.c language.c \ 103APPS = main.c tree.c menu.c credits.c main_menu.c icons.c language.c \
103 playlist.c wps.c wps-display.c settings.c status.c \ 104 playlist.c wps.c wps-display.c settings.c status.c \
@@ -284,6 +285,9 @@ $(OBJDIR)/sprintf.o: $(COMMON)/sprintf.c
284$(OBJDIR)/strtok.o: $(COMMON)/strtok.c 285$(OBJDIR)/strtok.o: $(COMMON)/strtok.c
285 $(CC) $(CFLAGS) -c $< -o $@ 286 $(CC) $(CFLAGS) -c $< -o $@
286 287
288$(OBJDIR)/timefuncs.o: $(COMMON)/timefuncs.c
289 $(CC) $(CFLAGS) -c $< -o $@
290
287$(OBJDIR)/stubs.o: $(SIMCOMMON)/stubs.c 291$(OBJDIR)/stubs.o: $(SIMCOMMON)/stubs.c
288 $(CC) $(CFLAGS) -c $< -o $@ 292 $(CC) $(CFLAGS) -c $< -o $@
289 293
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 @@
1#include <time.h> 1#include <time.h>
2#include <stdbool.h>
2 3
3/* struct tm defined */ 4/* struct tm defined */
4struct tm *get_time(void); 5struct tm *get_time(void);
6int set_time(struct tm *tm);
7bool valid_time(struct tm *tm);