diff options
| author | Ray <[email protected]> | 2017-02-23 17:59:13 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-02-23 17:59:13 +0100 |
| commit | c46989a1d961f3d8f898348e25c2b5b948ade9b2 (patch) | |
| tree | d156e4f60854694881b2d07bd81b365ba823f3b8 /examples | |
| parent | d8c19be047d9d7e8a61aa4d6093f89c53e7afce6 (diff) | |
| parent | bbdbc098dcfd6573b7934e3e3f8e6ce6dbd1da63 (diff) | |
| download | raylib-c46989a1d961f3d8f898348e25c2b5b948ade9b2.tar.gz raylib-c46989a1d961f3d8f898348e25c2b5b948ade9b2.zip | |
Merge pull request #230 from OdnetninI/develop
Examples Linux Physics Fix
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile index bef0fa11..ab70c5de 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -497,6 +497,13 @@ audio_module_playing: audio_module_playing.c audio_raw_stream: audio_raw_stream.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM) $(WINFLAGS) +# Linux Fix to timespect from +ifeq ($(PLATFORM),PLATFORM_DESKTOP) + ifeq ($(PLATFORM_OS),LINUX) + CFLAGS += -D_POSIX_C_SOURCE=199309L + endif +endif + # compile [physac] example - physics demo physics_demo: physics_demo.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -lpthread -D$(PLATFORM) $(WINFLAGS) |
