mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 08:43:49 +00:00
Be more UNIX-like if running on non-Windows OSes; overwriting files with a predefined name is very impolite
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@85 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
f5f1f53220
commit
08b580a848
@ -16,8 +16,12 @@ int main (int argc, char** argv)
|
|||||||
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));
|
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#ifdef _WIN32
|
||||||
f = fopen("glewinfo.txt", "w");
|
f = fopen("glewinfo.txt", "w");
|
||||||
if (f == NULL) f = stdout;
|
if (f == NULL) f = stdout;
|
||||||
|
#else
|
||||||
|
f = stdout;
|
||||||
|
#endif
|
||||||
fprintf(f, "---------------------------\n");
|
fprintf(f, "---------------------------\n");
|
||||||
fprintf(f, " GLEW Extension Info\n");
|
fprintf(f, " GLEW Extension Info\n");
|
||||||
fprintf(f, "---------------------------\n\n");
|
fprintf(f, "---------------------------\n\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user