mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
OSX compatibility changes and other minor tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32279 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a1d002fdbf
commit
f2e81c9391
5 changed files with 114 additions and 59 deletions
|
@ -5,15 +5,20 @@
|
|||
* Bitmask of all of the capabilities compiled into this version of the
|
||||
* runtime.
|
||||
*/
|
||||
static const int32_t caps =
|
||||
(1<<OBJC_CAP_EXCEPTIONS) |
|
||||
(1<<OBJC_CAP_SYNCRONIZE) |
|
||||
(1<<OBJC_CAP_PROPERTIES) |
|
||||
0;
|
||||
static const int32_t caps = 0
|
||||
| (1 << OBJC_CAP_EXCEPTIONS)
|
||||
| (1 << OBJC_CAP_SYNCRONIZE)
|
||||
| (1 << OBJC_CAP_PROPERTIES);
|
||||
|
||||
int objc_test_capability(int x)
|
||||
{
|
||||
if (x >= 32) { return 0; }
|
||||
if (caps & (1<<x)) { return 1; }
|
||||
return 0;
|
||||
if (x >= 32)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (caps & (1 << x))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue