diff options
| author | Miguel Lechón <miguel.lechon@gmail.com> | 2014-11-09 12:07:03 +0100 |
|---|---|---|
| committer | Miguel Lechón <miguel.lechon@gmail.com> | 2014-11-09 12:07:03 +0100 |
| commit | db2ad9648d7fa2c9b378f2dcbfaa8be372f7e957 (patch) | |
| tree | 088fc5a36c1ccda165e2a2c6bc38bb31da8a7b88 /src | |
| parent | 45b214d83e7469a64793ac4dcebaa0ab963668ef (diff) | |
| download | raylib-db2ad9648d7fa2c9b378f2dcbfaa8be372f7e957.tar.gz raylib-db2ad9648d7fa2c9b378f2dcbfaa8be372f7e957.zip | |
Small fixes to support a Debian/GNU Linux distro. Hopefully Ubuntu too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/makefile | 7 | ||||
| -rw-r--r-- | src/stb_vorbis.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/makefile b/src/makefile index 69e7862b..c5688a49 100644 --- a/src/makefile +++ b/src/makefile @@ -24,7 +24,7 @@ #************************************************************************************************** # define raylib platform (by default, compile for RPI) -# Other possible platform: PLATFORM_DESKTOP +# Other possible platforms: PLATFORM_DESKTOP PLATFORM_LINUX_DESKTOP PLATFORM ?= PLATFORM_RPI # define raylib graphics api depending on selected platform @@ -120,8 +120,13 @@ clean: ifeq ($(PLATFORM),PLATFORM_RPI) rm -f *.o libraylib.a else +ifeq ($(PLATFORM),PLATFORM_LINUX_DESKTOP) + find . -type f -executable -delete + rm -f *.o libraylib.a +else del *.o libraylib.a endif +endif @echo Cleaning done # instead of defining every module one by one, we can define a pattern diff --git a/src/stb_vorbis.c b/src/stb_vorbis.c index a88b2a77..7a45725b 100644 --- a/src/stb_vorbis.c +++ b/src/stb_vorbis.c @@ -28,6 +28,9 @@ #include "stb_vorbis.h" +#ifdef __linux +#include <alloca.h> +#endif #ifndef STB_VORBIS_HEADER_ONLY |
