New issue 114 by Van...@gmail.com: C library file io functions are in std
namespace
http://code.google.com/p/google-glog/issues/detail?id=114
What steps will reproduce the problem?
1. Compile glog with qnx cross compiler
What is the expected output? What do you see instead?
I expect compilation without errors. I see compilation errors such as:
ISO C++ forbids declaration of 'FILE' with no type
Under QNX, fdopen is in std namespace.
What version of the product are you using? On what operating system?
glog 0.3.2
QNX 6.5.0
Please provide any additional information below.
This patch fixes all compilation errors:
src/logging.cc
@@ -76,8 +75,19 @@
using std::min;
using std::ostream;
using std::ostringstream;
using std::strstream;
+using std::FILE;
+using std::fwrite;
+using std::fclose;
+using std::fflush;
+using std::fprintf;
+using std::perror;
+
+#ifdef __QNX__
+using std::fdopen;
+#endif
+
// There is no thread annotation support.
#define EXCLUSIVE_LOCKS_REQUIRED(mu)