Line 0
Link Here
|
|
|
1 |
--- src/common/Snapshot.cxx.orig Wed Jun 23 09:15:32 2004 |
2 |
+++ src/common/Snapshot.cxx Thu Sep 30 21:01:54 2004 |
3 |
@@ -73,7 +73,11 @@ |
4 |
uInt32 width = myFrameBuffer.imageWidth(); |
5 |
uInt32 height = myFrameBuffer.imageHeight(); |
6 |
|
7 |
+#if defined(__GNUC__) && __GNUC__ < 3 |
8 |
+ ofstream* out = new ofstream(filename.c_str(), ios::binary); |
9 |
+#else |
10 |
ofstream* out = new ofstream(filename.c_str(), ios_base::binary); |
11 |
+#endif |
12 |
if(!out) |
13 |
return "Couldn't create snapshot file"; |
14 |
|