Fixed ABI issue with const on glutCreateWindow.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2006-08-17 13:49:46 +00:00
parent 49a0693962
commit 2f4706602d
2 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,7 @@ FL_EXPORT void glutInitWindowSize(int w, int h);
FL_EXPORT void glutMainLoop();
FL_EXPORT int glutCreateWindow(char *title);
FL_EXPORT int glutCreateWindow(const char *title);
FL_EXPORT int glutCreateSubWindow(int win, int x, int y, int width, int height);

View File

@ -220,6 +220,10 @@ void glutInitWindowSize(int w, int h) {
initw = w; inith = h;
}
int glutCreateWindow(char *title) {
return glutCreateWindow((const char*)title);
}
int glutCreateWindow(const char *title) {
Fl_Glut_Window *W;
if (initpos) {