Bug 96245 -- xp'zation of dir separator symbol in the spy plugin, not part of the build

git-svn-id: svn://10.0.0.236/trunk@107037 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
av%netscape.com 2001-11-02 01:58:46 +00:00
parent 3aa44affb3
commit db71e9c87f
2 changed files with 13 additions and 2 deletions

View File

@ -36,7 +36,6 @@
* ***** END LICENSE BLOCK ***** */
#include "xp.h"
#include <windowsx.h>
#include "resource.h"
#include "logger.h"
@ -53,7 +52,7 @@ Logger::Logger() :
{
if(0 != GetPluginsDir(szFile, strlen(szFile)))
{
strcat(szFile, "\\");
strcat(szFile, DIR_SEPARATOR);
strcat(szFile, DEFAULT_LOG_FILE_NAME);
}
else

View File

@ -140,6 +140,18 @@
#define _MAX_PATH 256
#endif
#ifdef XP_WIN
#define DIR_SEPARATOR "\\"
#endif
#ifdef XP_UNIX
#define DIR_SEPARATOR "/"
#endif
#ifdef XP_MAC
#define DIR_SEPARATOR ":"
#endif
/*****************************************************/
// File utilities