Window build tweaks.
This commit is contained in:
parent
745075172b
commit
22f42294a8
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue