kopia lustrzana https://gitlab.com/sane-project/backends
19 wiersze
292 B
C
19 wiersze
292 B
C
![]() |
#include "config.h"
|
||
|
|
||
|
#ifndef HAVE_GETENV
|
||
|
|
||
|
char *
|
||
|
getenv(const char *name)
|
||
|
{
|
||
|
char *retval = 0;
|
||
|
#ifdef HAVE_OS2_H
|
||
|
if (0 != DosScanEnv (buf, &retval))
|
||
|
retval = 0;
|
||
|
#else
|
||
|
# error "Missing getenv() on this platform. Please implement."
|
||
|
#endif
|
||
|
return retval;
|
||
|
}
|
||
|
|
||
|
#endif /* !HAVE_GETENV */
|