diff options
Diffstat (limited to 'uisimulator/x11')
-rw-r--r-- | uisimulator/x11/Makefile | 5 | ||||
-rw-r--r-- | uisimulator/x11/timefuncs.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile index fb609ea2c3..6fbc413a3c 100644 --- a/uisimulator/x11/Makefile +++ b/uisimulator/x11/Makefile | |||
@@ -97,7 +97,7 @@ else | |||
97 | LCDSRSC = lcd-playersim.c lcd-player.c font-player.c lcd-player-charset.c | 97 | LCDSRSC = lcd-playersim.c lcd-player.c font-player.c lcd-player-charset.c |
98 | endif | 98 | endif |
99 | FIRMSRCS = $(LCDSRSC) id3.c debug.c usb.c mpeg.c mp3_playback.c power.c\ | 99 | FIRMSRCS = $(LCDSRSC) id3.c debug.c usb.c mpeg.c mp3_playback.c power.c\ |
100 | powermgmt.c panic.c mp3data.c sprintf.c buffer.c | 100 | powermgmt.c panic.c mp3data.c sprintf.c buffer.c timefuncs.c |
101 | 101 | ||
102 | APPS = main.c tree.c menu.c credits.c main_menu.c language.c\ | 102 | APPS = main.c tree.c menu.c credits.c main_menu.c language.c\ |
103 | playlist.c wps.c wps-display.c settings.c status.c icons.c\ | 103 | playlist.c wps.c wps-display.c settings.c status.c icons.c\ |
@@ -264,6 +264,9 @@ $(OBJDIR)/buffer.o: $(FIRMWAREDIR)/buffer.c | |||
264 | $(OBJDIR)/ctype.o: $(COMMON)/ctype.c | 264 | $(OBJDIR)/ctype.o: $(COMMON)/ctype.c |
265 | $(CC) $(CFLAGS) $(APPINCLUDES) -c $< -o $@ | 265 | $(CC) $(CFLAGS) $(APPINCLUDES) -c $< -o $@ |
266 | 266 | ||
267 | $(OBJDIR)/timefuncs.o: $(COMMON)/timefuncs.c | ||
268 | $(CC) $(CFLAGS) $(APPINCLUDES) -c $< -o $@ | ||
269 | |||
267 | $(OBJDIR)/stubs.o: $(SIMCOMMON)/stubs.c | 270 | $(OBJDIR)/stubs.o: $(SIMCOMMON)/stubs.c |
268 | $(CC) $(APPCFLAGS) -c $< -o $@ | 271 | $(CC) $(APPCFLAGS) -c $< -o $@ |
269 | 272 | ||
diff --git a/uisimulator/x11/timefuncs.h b/uisimulator/x11/timefuncs.h index c1b6ef8196..59e8b249eb 100644 --- a/uisimulator/x11/timefuncs.h +++ b/uisimulator/x11/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 */ |
4 | struct tm *get_time(void); | 5 | struct tm *get_time(void); |
6 | int set_time(struct tm *tm); | ||
7 | bool valid_time(struct tm *tm); | ||