From bd2d571c316d8054eecb3f115b4602cf16259c60 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 23 Jul 2013 01:59:27 +0200 Subject: [PATCH] Added explanation for #error. --- include/GLFW/glfw3.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index cdf52492..c112f185 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -140,6 +140,10 @@ extern "C" { /* ---------------- GLFW related system specific defines ----------------- */ #if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL) + /* GLFW_DLL is defined by users of GLFW when compiling programs that will link + * to the DLL version of the GLFW library. _GLFW_BUILD_DLL is defined by the + * GLFW configuration header when compiling the DLL version of the library. + */ #error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined" #endif