Sleep and Xcode
Sleep and Xcode
- Subject: Sleep and Xcode
- From: John Mikros <email@hidden>
- Date: Mon, 6 Feb 2006 17:29:02 -0800
We are in the process of porting an existing CodeWarrior CFM project
to Mach-O and then to Xcode.
Our codebase had a function called Sleep which, unsurprisingly, would
cause the current thread to sleep for a given number of milliseconds.
This compiled, linked and ran properly with CodeWarrior Mach-O.
However, when we build the same project under Xcode, we find that our
Sleep function causes linker errors, because OSServices already
contains a function named Sleep. This doesn't appear to be a
documented call--it isn't even in the Framework headers--but it
actually puts the entire computer to sleep! Definitely a surprise if
you're not expecting it :)
I can work around this problem by #defining Sleep to
__BlizzardSleep__ in our headers, but I was under the impression that
SPIs weren't this easy to access. Isn't there some mechanism in the
OS (e.g. two-level namespaces) to prevent Apple from polluting our
namespace, and vice-versa?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden