added extern "C" for C++ (bug 930933)

This commit is contained in:
Brian Paul
2004-04-09 17:18:22 +00:00
parent fb31a01f87
commit 5eb921382f

View File

@@ -1,10 +1,8 @@
/* $Id: miniglx.h,v 1.3 2004/03/24 15:59:44 brianp Exp $ */
/* /*
* Mesa 3-D graphics library * Mesa 3-D graphics library
* Version: 5.0 * Version: 6.1
* *
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"), * copy of this software and associated documentation files (the "Software"),
@@ -39,6 +37,12 @@
#include <GL/gl.h> #include <GL/gl.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
/** /**
* \name Replacement Xlib/GLX types * \name Replacement Xlib/GLX types
*/ */
@@ -439,4 +443,8 @@ glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config );
/*@}*/ /*@}*/
#ifdef __cplusplus
}
#endif
#endif /* MINIGLX_H */ #endif /* MINIGLX_H */