1 2 #ifndef __CONFIG_H__ 3 #define __CONFIG_H__ 4 5 /* General project wide configuration */ 6 7 /* 8 * Author: Graeme W. Gill 9 * 10 * Copyright 2006 - 2016, Graeme W. Gill 11 * All rights reserved. 12 * 13 * This material is licenced under the GNU GENERAL PUBLIC LICENSE Version 2 or later :- 14 * see the License2.txt file for licencing details. 15 */ 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 /* Version of Argyll release */ 22 /* Bug fix = 4 bits */ 23 /* minor number = 8 bits */ 24 /* major number = 8 bits */ 25 26 #ifndef USE_NG_VERSION 27 # define ARGYLL_VERSION 0x01092 28 # define ARGYLL_VERSION_STR "1.9.2" 29 #else 30 # define ARGYLL_VERSION NG_VERSION 31 # define ARGYLL_VERSION_STR "NG_VERSION_STR" 32 #endif 33 34 #if defined(NT) 35 # if defined(_WIN64) 36 # define ARGYLL_BUILD_STR "MSWin 64 bit" 37 # else 38 # define ARGYLL_BUILD_STR "MSWin 32 bit" 39 # endif 40 #endif 41 #if defined(UNIX) 42 # if defined(__APPLE__) 43 # if defined(__P64__) 44 # define ARGYLL_BUILD_STR "OS X 64 bit" 45 # else 46 # define ARGYLL_BUILD_STR "OS X 32 bit" 47 # endif 48 # else 49 # if defined(__P64__) 50 # define ARGYLL_BUILD_STR "Linux 64 bit" 51 # else 52 # define ARGYLL_BUILD_STR "Linux 32 bit" 53 # endif 54 # endif 55 #endif 56 57 /* Maximum file path length */ 58 #define MAXNAMEL 1024 59 60 /* Maximum number of entries to setup for calibration */ 61 #define MAX_CAL_ENT 16384 62 63 /* A simpler #define to remove __APPLE__ from non OS X code */ 64 #if defined(UNIX) 65 # if defined(__APPLE__) 66 # define UNIX_APPLE 67 # undef UNIX_X11 68 # else 69 # define UNIX_X11 70 # undef UNIX_APPLE 71 # endif 72 #endif 73 74 #ifdef UNIX_X11 75 # define USE_UCMM /* Enable the Unix micro CMM */ 76 #endif 77 78 #ifdef __cplusplus 79 } 80 #endif 81 82 #endif /* __CONFIG_H__ */ 83