microCOR Lab SDK  1.7
 All Classes Files Functions Enumerations Enumerator Modules
microCORLabGlobal.h
Go to the documentation of this file.
1 /* Copyright (C) 2015 Infron Ltd. - All Rights Reserved
2  *
3  * Redistribution of this file without permission is prohibited.
4  *
5  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
10  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
11  * IN THE SOFTWARE.
12  */
13 
22 #ifndef MICROCORLABGLOBAL_H
23 #define MICROCORLABGLOBAL_H
24 
25 
26 /* https://sourceforge.net/p/predef/wiki/OperatingSystems/ */
27 /* http://msdn.microsoft.com/en-us/library/b0084kay(VS.80).aspx */
28 #ifdef _WIN32
29 # if defined(MICROCORLAB_LIBRARY)
30 # define MICROCORLABSHARED_EXPORT __declspec(dllexport)
31 # else
32 # define MICROCORLABSHARED_EXPORT __declspec(dllimport)
33 # endif
34 #elif __linux__
35 # if defined(MICROCORLAB_LIBRARY)
36 # define MICROCORLABSHARED_EXPORT __attribute__((visibility("default")))
37 # else
38 # define MICROCORLABSHARED_EXPORT __attribute__((visibility("default")))
39 # endif
40 #else
41 # error "Unknown OS"
42 #endif
43 #ifdef MICROCORLAB_DIRECT_USE
44 # undef MICROCORLABSHARED_EXPORT
45 # define MICROCORLABSHARED_EXPORT
46 #endif
47 
48 
49 #ifndef RESOLUTION_SHIFT_MIN
50 
51 #define RESOLUTION_SHIFT_MIN 0
52 #endif
53 
54 #ifndef RESOLUTION_SHIFT_MAX
55 
56 #define RESOLUTION_SHIFT_MAX 8
57 #endif
58 
59 #endif // MICROCORLABGLOBAL_H
60  // end of microCORLabCPPApi