added a few missing GLAPIENTRYs to make MinGW compile again
diff --git a/src/mesa/main/lines.c b/src/mesa/main/lines.c
index 122a27f..c30d9ac 100644
--- a/src/mesa/main/lines.c
+++ b/src/mesa/main/lines.c
@@ -122,7 +122,7 @@
  * Initializes __GLcontextRec::Line and line related constants in
  * __GLcontextRec::Const.
  */
-void _mesa_init_line( GLcontext * ctx )
+void GLAPIENTRY _mesa_init_line( GLcontext * ctx )
 {
    /* Line group */
    ctx->Line.SmoothFlag = GL_FALSE;
diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c
index 4231b22..546c054 100644
--- a/src/mesa/main/program.c
+++ b/src/mesa/main/program.c
@@ -791,7 +791,7 @@
  * \note Called from the GL API dispatcher by both glBindProgramNV
  * and glBindProgramARB.
  */
-void
+void GLAPIENTRY
 _mesa_BindProgram(GLenum target, GLuint id)
 {
    struct program *prog;
@@ -945,7 +945,7 @@
  * \note Not compiled into display lists.
  * \note Called by both glGenProgramsNV and glGenProgramsARB.
  */
-void
+void GLAPIENTRY
 _mesa_GenPrograms(GLsizei n, GLuint *ids)
 {
    GLuint first;
@@ -990,7 +990,7 @@
  * \param id is the program identifier
  * \return GL_TRUE if id is a program, else GL_FALSE.
  */
-GLboolean
+GLboolean GLAPIENTRY
 _mesa_IsProgram(GLuint id)
 {
    struct program *prog;