Window build tweaks.

This commit is contained in:
Steve 2018-03-24 08:35:28 +00:00
parent 745075172b
commit 22f42294a8
3 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,7 @@ CXXFLAGS += -Wall -Wempty-body -ansi -pedantic -Werror -Wstrict-prototypes -Werr
CXXFLAGS += -g -lefence
CXXFLAGS += -fms-extensions -std=gnu11
LDFLAGS += `$(SDLC) --libs` -lm -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lSDL2main
LDFLAGS += `$(SDLC) --libs` -lm -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lSDL2main -lz -lpng
include common.mk

View File

@ -4,7 +4,7 @@
* This code is free software, available under zlib/libpng license.
* http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
*/
#include <SDL.h>
#include <SDL2/SDL.h>
#include <png.h>
#define SUCCESS 0

View File

@ -89,8 +89,11 @@ char *timeToDate(long millis)
static char DATE[MAX_NAME_LENGTH];
struct tm *timeinfo;
time_t t;
timeinfo = localtime(&millis);
t = millis;
timeinfo = localtime(&t);
strftime(DATE, MAX_NAME_LENGTH, "%d %b %Y, %I:%M%p", timeinfo);