* Added strptime() to the build again,

* also defined STD_INSPIRED again, which lets localtime.c add some non-POSIX
  behaviour for now (needed by strptime()) - we should find a better solution
  to this, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18435 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-08-07 16:45:33 +00:00
parent 464b524b93
commit 36788b7119
2 changed files with 10 additions and 6 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
SubDir HAIKU_TOP src system libroot posix time ; SubDir HAIKU_TOP src system libroot posix time ;
# for localtime.c strftime.c # for localtime.c strftime.c
SubDirCcFlags -DNOID -DTZDIR='\"/etc/timezones\"' -DUSG_COMPAT -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DPCTS=1 ; SubDirCcFlags -DNOID -DTZDIR='\"/etc/timezones\"' -DUSG_COMPAT -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DPCTS=1 -DSTD_INSPIRED ;
UsePrivateHeaders [ FDirName libroot time ] ; UsePrivateHeaders [ FDirName libroot time ] ;
UseHeaders $(TARGET_PRIVATE_KERNEL_HEADERS) : true ; UseHeaders $(TARGET_PRIVATE_KERNEL_HEADERS) : true ;
@@ -14,8 +14,8 @@ MergeObject posix_time.o :
localtime.c localtime.c
stime.c stime.c
strftime.c strftime.c
# strptime.c strptime.c
# timelocal.c timelocal.c
time.c time.c
; ;
+7 -3
View File
@@ -29,9 +29,9 @@
#include "timelocal.h" #include "timelocal.h"
#if 0
static struct lc_time_T _time_locale; static struct lc_time_T _time_locale;
static int _time_using_locale; static int _time_using_locale;
#if 0
static char *time_locale_buf; static char *time_locale_buf;
#endif #endif
@@ -100,9 +100,13 @@ static const struct lc_time_T _C_time_locale = {
struct lc_time_T * struct lc_time_T *
__get_current_time_locale(void) __get_current_time_locale(void)
{ {
return (_time_using_locale return
#if 0
(_time_using_locale
? &_time_locale ? &_time_locale
: (struct lc_time_T *)&_C_time_locale); :
#endif
(struct lc_time_T *)&_C_time_locale;
} }
#if 0 #if 0