summaryrefslogtreecommitdiff
path: root/perlenv.h
diff options
context:
space:
mode:
Diffstat (limited to 'perlenv.h')
-rw-r--r--perlenv.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/perlenv.h b/perlenv.h
index 9dd71850b3..6f4211ec48 100644
--- a/perlenv.h
+++ b/perlenv.h
@@ -2,9 +2,15 @@
#define H_PERLENV 1
#ifdef PERL_OBJECT
+
+#include "ipenv.h"
+
+#define PerlEnv_putenv(str) piENV->Putenv((str), ErrorNo())
+#define PerlEnv_getenv(str) piENV->Getenv((str), ErrorNo())
+#define PerlEnv_lib_path piENV->LibPath
#else
-#define PerlENV_putenv(str) putenv((str))
-#define PerlENV_getenv(str) getenv((str))
+#define PerlEnv_putenv(str) putenv((str))
+#define PerlEnv_getenv(str) getenv((str))
#endif /* PERL_OBJECT */
#endif /* Include guard */