My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* Copyright (c) 2007 Christopher J. W. Lloyd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#import <stdlib.h>

#ifdef __clang__
#define OBJC_DLLEXPORT
#define OBJC_DLLIMPORT

#ifndef __APPLE__
#define OBJC_TYPED_SELECTORS 1
#endif

#else
#define OBJC_DLLEXPORT __declspec(dllexport)
#define OBJC_DLLIMPORT __declspec(dllimport)
#endif

#ifdef __cplusplus

#if defined(__WIN32__)
#if defined(OBJC_INSIDE_BUILD)
#define OBJC_EXPORT extern "C" OBJC_WINDOWS_DLLEXPORT
#else
#define OBJC_EXPORT extern "C" OBJC_WINDOWS_DLLIMPORT
#endif
#else
#define OBJC_EXPORT extern "C"
#endif

#else

#if defined(__WIN32__)
#if defined(OBJC_INSIDE_BUILD)
#define OBJC_EXPORT OBJC_DLLEXPORT extern
#else
#define OBJC_EXPORT OBJC_DLLIMPORT extern
#endif
#else
#define OBJC_EXPORT extern
#endif

#endif

Change log

51a7fda54333 by Christopher Lloyd <c...@objc.net> on May 28, 2013   Diff
add feature macro
Go to: 
Project members, sign in to write a code review

Older revisions

0b0cf137dca2 by Christopher Lloyd <c...@objc.net> on May 25, 2013   Diff
fix __declspec use
af36fb700cd3 by cocotron on Apr 6, 2009   Diff
Updated towards Objective-C 2.0
runtime API and some decoupling of
objc runtime from Foundation
- added 2.0 objc/runtime.h, message.h
with most of the declarations
...
1973f9adc866 by cocotron on Jan 2, 2007   Diff
First pass at key value coding from
issues 6 and 7, addition of objc
framework
All revisions of this file

File info

Size: 1766 bytes, 48 lines
Powered by Google Project Hosting