Community
Participate
Working Groups
We build the Windows TCF agent using Mingw 3.4.5. We include some C++ sources in our side, and when using these, the compiler issues errors due to this line in mdep.h: (line 131) #define snprintf _snprintf with such reports as, e.g.: C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:167: error: `::snprintf' has not been declared C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:177: error: `__gnu_cxx::snprintf' has not been declared C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:72: error: `snprintf' is not a member of `std' This kind of #define pattern seems like an MSVC-ism (to access extension functions which aren't in standard C). This pattern seems to be unnecessary in GCC-derived builds. Is it safe to just guard these as: (mdep.h line 128) #ifdef _MSC_VER #define utimbuf _utimbuf #define utime _utime #define futime _futime #define snprintf _snprintf #endif I did this and the build succeeded under MinGW, so it seems safe...
I have committed the fix. Thanks.
Bulk update: Marking all TCF fixes from the Helios period (2009-06-29 until 2010-06-01) as target 3.2 since they go through release review along with the TM 3.2 release.
Moving bugs to new home for IP log.
Bulk change: Marking all bugs from the TM era (until June 2011) target 0.3