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:
mem 2003-07-06 20:03:33 +00:00
parent f5f1f53220
commit 08b580a848

View File

@ -16,8 +16,12 @@ int main (int argc, char** argv)
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));
return 1;
}
#ifdef _WIN32
f = fopen("glewinfo.txt", "w");
if (f == NULL) f = stdout;
#else
f = stdout;
#endif
fprintf(f, "---------------------------\n");
fprintf(f, " GLEW Extension Info\n");
fprintf(f, "---------------------------\n\n");