NIMSDK-iOS
载入中...
搜索中...
未找到
NIMPlatform.h
浏览该文件的文档.
1//
2// NIMPlatform.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright © 2017年 Netease. All rights reserved.
7//
8
9#ifndef NIMPlatform_h
10#define NIMPlatform_h
11
12#import <Foundation/Foundation.h>
13
14#if TARGET_OS_IPHONE
15#define NIM_IOS 1
16#endif
17
18#if TARGET_OS_MAC && !TARGET_OS_IPHONE
19#define NIM_MAC 1
20#endif
21
22
23#if NIM_IOS
24#import <UIKit/UIKit.h>
25#elif NIM_MAC
26#import <Cocoa/Cocoa.h>
27@compatibility_alias UIImage NSImage;
28@compatibility_alias UIView NSView;
29
30#endif
31
32
33#endif /* NIMPlatform_h */