fixed to compile on Mac

This commit is contained in:
pierre%netscape.com 1998-08-05 08:26:03 +00:00
parent 60033176bc
commit 9d5a4142eb
2 changed files with 24 additions and 0 deletions

View File

@ -27,6 +27,17 @@
#include "prio.h"
#include <iostream.h>
#ifdef XP_MAC
class PRofstream : public ofstream
{
public:
inline void attach(PRFileDesc *) {};
};
#else
#if defined(__GNUC__)
#define _PRSTR_BP _strbuf
#define _PRSTR_DELBUF(x) /* as nothing */
@ -103,4 +114,5 @@ public:
void close();
};
#endif /* XP_MAC */
#endif /* __PRSTRM */

View File

@ -27,6 +27,17 @@
#include "prio.h"
#include <iostream.h>
#ifdef XP_MAC
class PRofstream : public ofstream
{
public:
inline void attach(PRFileDesc *) {};
};
#else
#if defined(__GNUC__)
#define _PRSTR_BP _strbuf
#define _PRSTR_DELBUF(x) /* as nothing */
@ -103,4 +114,5 @@ public:
void close();
};
#endif /* XP_MAC */
#endif /* __PRSTRM */