Преглед на файлове

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 преди 3 години
родител
ревизия
6c58d346f1
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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