Parcourir la source

Add export to the raylibVersion global, because it needs it on Windows.
Also had to make it public, because D doesn't like `export private`

Steven Schveighoffer il y a 3 ans
Parent
commit
6c58d346f1
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      source/raylib/binding.d

+ 2 - 1
source/raylib/binding.d

@@ -6,7 +6,8 @@ module raylib.binding;
 import raylib;
 
 // stored inside raylib to validate the binding
-private extern(C) extern __gshared const(char)* raylibVersion;
+// NOTE: should be private, but D doesn't allow private export symbols
+/*private*/ extern(C) extern export __gshared const(char*) raylibVersion;
 
 /**
  * Call this function before using any raylib functions to validate the binding