From 8117f4e48de7f4d527e879294c06f9e41e39e5bd Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 2 Nov 2011 23:10:04 +0100 Subject: [PATCH] Finished dynamic linking test debug output. --- tests/dynamic.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 tests/dynamic.c diff --git a/tests/dynamic.c b/tests/dynamic.c old mode 100644 new mode 100755 index 0ad1c121..8bc5568b --- a/tests/dynamic.c +++ b/tests/dynamic.c @@ -44,6 +44,13 @@ int main(void) int major, minor, rev; glfwGetVersion(&major, &minor, &rev); + printf("GLFW header version: %i.%i.%i\n", + GLFW_VERSION_MAJOR, + GLFW_VERSION_MINOR, + GLFW_VERSION_REVISION); + printf("GLFW library version: %i.%i.%i\n", major, minor, rev); + printf("GLFW library version string: %s\n", glfwGetVersionString()); + if (major != GLFW_VERSION_MAJOR || minor != GLFW_VERSION_MINOR || rev != GLFW_VERSION_REVISION) @@ -52,9 +59,6 @@ int main(void) exit(EXIT_FAILURE); } - printf("GLFW version: %i.%i.%i\n", major, minor, rev); - printf("GLFW version string: %s\n", glfwGetVersionString()); - if (!glfwInit()) { fprintf(stderr, "Failed to initialize GLFW\n");