Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
ef8dbef020
1 changed files with 5 additions and 1 deletions
  1. 5 1
      dtool/src/dtoolutil/executionEnvironment.cxx

+ 5 - 1
dtool/src/dtoolutil/executionEnvironment.cxx

@@ -11,7 +11,7 @@
 // this case, we must read all of the environment variables directly
 // this case, we must read all of the environment variables directly
 // and cache them locally.
 // and cache them locally.
 
 
-#ifdef STATIC_INIT_GETENV
+#ifndef STATIC_INIT_GETENV
 #define PREREAD_ENVIRONMENT
 #define PREREAD_ENVIRONMENT
 #endif
 #endif
 
 
@@ -185,6 +185,8 @@ read_environment_variables() {
     }
     }
     ch = proc.get();
     ch = proc.get();
   }
   }
+#else
+  cerr << "Warning: environment variables unavailable to dconfig.\n";
 #endif
 #endif
 }
 }
 
 
@@ -238,5 +240,7 @@ read_args() {
 
 
     ch = proc.get();
     ch = proc.get();
   }
   }
+#else
+  cerr << "Warning: command line parameters unavailable to dconfig.\n";
 #endif
 #endif
 }
 }