mirror of https://github.com/fltk/fltk
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:
parent
49a0693962
commit
2f4706602d
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue