mirror of
https://github.com/openharmony/third_party_backends.git
synced 2026-07-21 07:05:22 -04:00
a0b9f501f8
Henning Meier-Geinitz <henning@meier-geinitz.de>
19 lines
308 B
C
19 lines
308 B
C
#include "../include/sane/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 */
|