浏览代码

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