Index: include/log4cpp/config-win32.h =================================================================== --- include/log4cpp/config-win32.h (revision 1) +++ include/log4cpp/config-win32.h (working copy) @@ -139,7 +139,10 @@ /* define mode_t. Move to Portability.hh if more platforms need it */ #if !defined(__BORLANDC__) -typedef int mode_t; +namespace log4cpp +{ + typedef int mode_t; +} #endif #if defined(_MSC_VER) && _MSC_VER == 1310