Add GopherJS build constraints

This commit is contained in:
Milan Nikolic 2017-12-07 22:09:16 +01:00
parent 5db89e7c35
commit 9ddb7731e9
32 changed files with 49 additions and 17 deletions

View file

@ -1,4 +1,6 @@
// +build !js
// The implementation of mini_al needs to #include windows.h which means it needs to go into
// it's own translation unit. Not doing this will cause conflicts with CloseWindow(), etc.
#define MAL_IMPLEMENTATION
#include "mini_al.h"
#include "mini_al.h"