>>>>> "Lars" == Lars Gullik Bj�nnes <[EMAIL PROTECTED]> writes:

Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: |
Lars> It seems that CC defines many (all?) C functions in std
Lars> namespace. How | are we going to handle that? Does adding
Lars> 'using' directives make sense | on other compilers?

Lars> note that it is correct to put the C prototypes into std::.

So we should start adding 'using' directives to identify all the C
functions we are using?

Lars> | putenv() needs a char const * argument in all OS I've checked
Lars> _except_ | solaris 7 which wants char * (solaris 2.6 uses char
Lars> const *). I really | do not know what to do about that... It
Lars> seems that putenv() is not | standard at all. Should we prefer
Lars> using setenv()?

Lars> AFAIK putenv is posix, and setenv is bsd.

Yes, but putenv() was not in posix.1. It might be in newer revisions,
though I did not find a reference. Should we prefer using setenv()
when available? Does solaris 7 have setenv()?

JMarc

Reply via email to