Browse Source

Try fixing issue with betterC and string comparison

Steven Schveighoffer 2 years ago
parent
commit
7738fe0d4f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      source/raylib/binding.d

+ 2 - 1
source/raylib/binding.d

@@ -25,7 +25,8 @@ void validateRaylibBinding() @nogc nothrow {
     import core.stdc.stdlib;
     import core.stdc.string;
     auto rlv = raylibVersion[0 .. strlen(raylibVersion)];
-    if(rlv != RAYLIB_VERSION)
+    //if(rlv != RAYLIB_VERSION)
+    if(strcmp(raylibVersion, RAYLIB_VERSION) != 0)
     {
         printf("FATAL ERROR: Raylib binding expected version %.*s, library version is %.*s\n",
                cast(int)RAYLIB_VERSION.length, RAYLIB_VERSION.ptr,