1999-09-20 02:19:51 +00:00
|
|
|
*** app.cpp.orig Mon Mar 15 06:53:16 1999
|
|
|
|
--- app.cpp Sat Sep 18 15:13:44 1999
|
1999-03-02 00:07:03 +00:00
|
|
|
***************
|
1999-09-20 02:19:51 +00:00
|
|
|
*** 30,35 ****
|
|
|
|
--- 30,42 ----
|
1999-03-02 00:07:03 +00:00
|
|
|
#define SIZE_MAXPATH _MAX_PATH
|
1999-09-20 02:19:51 +00:00
|
|
|
#define DELETEARRAY delete[]
|
1999-03-02 00:07:03 +00:00
|
|
|
|
|
|
|
+ #elif defined(__FreeBSD__)
|
|
|
|
+ // FreeBSD g++
|
|
|
|
+ // (anybody know if this stuff applies more generally to other BSDs?)
|
|
|
|
+ #include <unistd.h>
|
|
|
|
+ #include <sys/syslimits.h>
|
|
|
|
+ #define SIZE_MAXPATH PATH_MAX
|
|
|
|
+
|
|
|
|
#elif defined(__linux__)
|
|
|
|
// linux g++
|
|
|
|
#include <unistd.h>
|
1999-09-20 02:19:51 +00:00
|
|
|
***************
|
|
|
|
*** 81,87 ****
|
|
|
|
{
|
|
|
|
static char szBuf[ 64 ];
|
|
|
|
struct tm* psDateTime;
|
|
|
|
! psDateTime = localtime( &lValue );
|
|
|
|
|
|
|
|
if ( !psDateTime )
|
|
|
|
strcpy( szBuf, "INVALID DATE/TIME" );
|
|
|
|
--- 88,94 ----
|
|
|
|
{
|
|
|
|
static char szBuf[ 64 ];
|
|
|
|
struct tm* psDateTime;
|
|
|
|
! psDateTime = localtime( (time_t *)&lValue );
|
|
|
|
|
|
|
|
if ( !psDateTime )
|
|
|
|
strcpy( szBuf, "INVALID DATE/TIME" );
|