-
Notifications
You must be signed in to change notification settings - Fork 1
/
libname-01.h
66 lines (43 loc) · 1.29 KB
/
libname-01.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef _INC_LIBNAME_01_H
#define _INC_LIBNAME_01_H
#if !defined(_MSC_VER)||_MSC_VER>1850||_MSC_VER<1400
//#error "The compiler is not supported by current lib-configuraton!"
#endif
#if _MSC_VER==1900
#define _LN_CVER() "8"
#elif _MSC_VER==1800
#define _LN_CVER() "7"
#elif _MSC_VER==1700
#define _LN_CVER() "6"
#elif _MSC_VER==1600
#define _LN_CVER() "5"
#elif _MSC_VER==1400
#define _LN_CVER() "3"
#endif
#ifdef _UNICODE
#define _LN_CHAR() "u"
#else
#define _LN_CHAR() ""
#endif
#ifdef _DLL
#define _LN_MT() ""
#else
#define _LN_MT() "t" //not supported yet
//#define _LN_MT() "" //not supported yet
#endif
#ifdef _DEBUG
#define _LN_DEBUG() "d"
#else
#define _LN_DEBUG() ""
#endif
#define _LN_STR_VAL(s) s
#define _LN_LIB_TYPE(s) _LN_CVER()##_LN_STR_VAL(s)##_LN_CHAR()_LN_MT()_LN_DEBUG()".lib"
#define _LN_LIB_TYPE_A(s) _LN_CVER()##_LN_STR_VAL(s)##_LN_MT()_LN_DEBUG()".lib"
#define _LN_LIB_TYPE_AS(s) _LN_STR_VAL(s)_LN_MT()##_LN_DEBUG()##".lib"
#define _LN_STR(str) #str
#define _LN_DLL_LIB(name) _LN_STR(name)_LN_LIB_TYPE("")
#define _LN_STATIC_LIB(name) _LN_STR(name)_LN_LIB_TYPE("s")
#define _LN_DLL_LIB_A(name) _LN_STR(name)_LN_LIB_TYPE_A("")
#define _LN_DLL_LIB_AS(name) _LN_STR(name)##_LN_LIB_TYPE_AS("")
#define _LN_STATIC_LIB_A(name) _LN_STR(name)_LN_LIB_TYPE_A("s")
#endif