not compiled in exact same feature environment
Message-ID: <20130613231058.GA7385 at quail.dasyatidae.internal>
Content-Type: text/plain; charset=us-asciiQuoth Sik the hedgehog <sik.the.hedgehog at gmail.com>, on 2013-06-13 05:54:39
-0300:In other words, it means that for some reason SDL is being told those
functions exist, but the system headers say otherwise. Maybe that’s
the issue? Note that on some platforms the system headers will declare
functions depending on the standards mode in use.This is pretty much what I said upthread regarding different
compilation environments for the SDL library and its consumer. Sorry
if I was unclear.My main question for upstream is in what ways consumers of SDL rely on
the SDL_-prefixed versions of these functions (either in the explicit
API or /de facto/). I’d prefer to be able to drop them from my
compilation environment completely, either by default or with a macro
setting. My current feeling from looking at SDL_stdinc.h is that that
whole pile is mainly intended for use within SDL and therefore
exposing all this transitive dependency to consumers is unintentional.
The setenv function might be required on some platforms to prepare the
local environment before loading libraries that depend on it. In which
case, you really might as well expose it to the programmer. It’s
"conventional" use would be to communicate with programs that you’ll
be launching (directly or otherwise) from the program that uses
setenv. I think the “launch” step could be done with C’s system()
function, and I have some incomplete code to provide SDL with a
pipe-command system, so this is actually something that could come up.
Theoretically.
Eventually.
Maybe.
Theoretical uses for the function would be launcher programs
(SDLTerminal, anyone?), and programs that (bear in mind, I don’t claim
to know why you would want to do things like this) detect the current
environment in a STRICT sense, and then re-start themselves
accordingly.> Date: Thu, 13 Jun 2013 18:10:58 -0500
From: Drake Wilson
To: SDL Development List
Subject: Re: [SDL] SDL_stdinc.h inlines problematic when application