Fix old libc substitution files, now needed for windows/mingw32

porting.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13524 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2006-03-07 22:00:44 +00:00
parent 0651fed036
commit 96dea8f6b7
3 changed files with 6 additions and 3 deletions

View File

@ -34,7 +34,7 @@ localtime_r(const time_t *const timep, struct tm *p_tm)
struct tm *
localtime_r(const time_t *const timep, struct tm *p_tm)
{
static tm* tmp;
static struct tm* tmp;
tmp = localtime(timep);
if (tmp) {
memcpy(p_tm, tmp, sizeof(struct tm));

View File

@ -21,8 +21,10 @@
\********************************************************************/
#include <glib.h>
#include <glib/gprintf.h>
#include <stdlib.h>
#include <string.h>
#include "setenv.h"
/* This setenv() papers over the brokenness of of systems that only
* have putenv() which takes ownership of the pointer you give it,

View File

@ -20,8 +20,8 @@
*
\********************************************************************/
#ifndef GNC_CORE_UTILS_H
#define GNC_CORE_UTILS_H
#ifndef __SETENV_H
#define __SETENV_H
#include "config.h"
@ -31,3 +31,4 @@ int setenv(const char *name, const char *value, int overwrite);
int unsetenv(const char *name);
#endif
#endif