OSDN Git Service

glut: Use a new define GLUT_STATIC to distinguish static builds.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 13:52:02 +0000 (13:52 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 13:52:02 +0000 (13:52 +0000)
commit0e4e76572e3a8808b06916b5359fc5cc71fd04a4
tree0059136747235ce7bf41be881cb37309e2bbde26
parent492c7b360d2ae3fce271ec9b0e404b822f0ba57a
glut: Use a new define GLUT_STATIC to distinguish static builds.

_DLL is defined by MSVC when building against a DLL version of the CRT
library. It bears no relation to whether we are building a DLL or not. That
is, we can build a DLL against a static CRT, or a static lib against a
dynamicaly linked CRT. See more detail at
http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx

This gets DLL version of glut linking correctly both with MinGW and MSVC.

PS: GL/gl.h (and others) must be fixed too.
include/GL/glut.h