mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 01:16:43 -06:00
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:
parent
0651fed036
commit
96dea8f6b7
@ -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));
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user