From 08b580a84805e72df5845ef9f5048894ec8c74ce Mon Sep 17 00:00:00 2001 From: mem Date: Sun, 6 Jul 2003 20:03:33 +0000 Subject: [PATCH] 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 --- auto/src/glewinfo_post.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto/src/glewinfo_post.c b/auto/src/glewinfo_post.c index 5645191..0229181 100644 --- a/auto/src/glewinfo_post.c +++ b/auto/src/glewinfo_post.c @@ -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");