Go to the documentation of this file. 45 #ifndef XSPF_DEFINES_H 46 #define XSPF_DEFINES_H 53 #define XSPF_NS_HOME _PT("http://xspf.org/ns/0/") 54 #define XSPF_NS_HOME_LEN 21 55 #define XSPF_NS_SEP_CHAR _PT(' ') 56 #define XSPF_NS_SEP_STRING _PT(" ") 57 #define XML_NS_HOME _PT("http://www.w3.org/XML/1998/namespace") 58 #define XML_NS_HOME_LEN 36 63 #if (!defined(XML_MAJOR_VERSION) || !defined(XML_MINOR_VERSION) \ 64 || !defined(XML_MICRO_VERSION) || (XML_MAJOR_VERSION < 1) \ 65 || ((XML_MAJOR_VERSION == 1) && ((XML_MINOR_VERSION < 95) \ 66 || ((XML_MINOR_VERSION == 95) && (XML_MICRO_VERSION < 8))))) 67 # error Expat 1.95.8 or later is required 75 #define XSPF_MAX_BLOCK_SIZE 100000 81 #undef XSPF_OS_WINDOWS 86 #if (defined(__WIN32__) || defined(_WIN32) || defined(WIN32)) 92 #define XSPF_OS_WINDOWS 1 97 # error _UNICODE not defined 101 # error UNICODE not defined 107 #define XSPF_OS_UNIX 1 114 #ifdef XSPF_OS_WINDOWS 115 # define XSPF_OS_SELECT(windows, unix) windows 118 # define XSPF_OS_SELECT(windows, unix) unix 123 #define PORT_ATOI XSPF_OS_SELECT(_ttoi, atoi) 124 #define PORT_FOPEN XSPF_OS_SELECT(_tfopen, fopen) 125 #define PORT_MAIN XSPF_OS_SELECT(_tmain, main) 126 #define PORT_PRINTF XSPF_OS_SELECT(_tprintf, printf) 129 # define PORT_SNPRINTF XSPF_OS_SELECT(_snwprintf, snprintf) 131 # define PORT_SNPRINTF XSPF_OS_SELECT(_snprintf, snprintf) 134 #define PORT_STRCMP XSPF_OS_SELECT(_tcscmp, strcmp) 135 #define PORT_STRCPY XSPF_OS_SELECT(_tcscpy, strcpy) 136 #define PORT_STRLEN XSPF_OS_SELECT(_tcslen, strlen) 137 #define PORT_STRNCMP XSPF_OS_SELECT(_tcsncmp, strncmp) 138 #define PORT_STRNCPY XSPF_OS_SELECT(_tcsncpy, strncpy) 139 #define PORT_STRNICMP XSPF_OS_SELECT(_tcsnicmp, strnicmp) 140 #define _PT(x) XSPF_OS_SELECT(_T(x), x) 145 #endif // XSPF_DEFINES_H