line = " ";
if(array.type==GL_UNSIGNED_BYTE)
- line += format(fmt, *(reinterpret_cast<unsigned char *>(ptr)+i));
+ line += format(fmt, *(reinterpret_cast<const unsigned char *>(ptr)+i));
else if(array.type==GL_UNSIGNED_SHORT)
- line += format(fmt, *(reinterpret_cast<unsigned short *>(ptr)+i));
+ line += format(fmt, *(reinterpret_cast<const unsigned short *>(ptr)+i));
else if(array.type==GL_UNSIGNED_INT)
- line += format(fmt, *(reinterpret_cast<unsigned *>(ptr)+i));
+ line += format(fmt, *(reinterpret_cast<const unsigned *>(ptr)+i));
if(line.size()+1+width>79)
{
#include "opengl.h"
-extern int typesize(GLenum);
-extern int formatsize(GLenum);
-extern int paramsize(GLenum);
-extern int buffersize(GLenum);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int typesize(GLenum);
+int formatsize(GLenum);
+int paramsize(GLenum);
+int buffersize(GLenum);
+
+#ifdef __cplusplus
+}
+#endif
#endif