1*30b9430bSXin Li/* 2*30b9430bSXin Li * config.h for libdivsufsort 3*30b9430bSXin Li * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. 4*30b9430bSXin Li * 5*30b9430bSXin Li * Permission is hereby granted, free of charge, to any person 6*30b9430bSXin Li * obtaining a copy of this software and associated documentation 7*30b9430bSXin Li * files (the "Software"), to deal in the Software without 8*30b9430bSXin Li * restriction, including without limitation the rights to use, 9*30b9430bSXin Li * copy, modify, merge, publish, distribute, sublicense, and/or sell 10*30b9430bSXin Li * copies of the Software, and to permit persons to whom the 11*30b9430bSXin Li * Software is furnished to do so, subject to the following 12*30b9430bSXin Li * conditions: 13*30b9430bSXin Li * 14*30b9430bSXin Li * The above copyright notice and this permission notice shall be 15*30b9430bSXin Li * included in all copies or substantial portions of the Software. 16*30b9430bSXin Li * 17*30b9430bSXin Li * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18*30b9430bSXin Li * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 19*30b9430bSXin Li * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20*30b9430bSXin Li * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 21*30b9430bSXin Li * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22*30b9430bSXin Li * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23*30b9430bSXin Li * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24*30b9430bSXin Li * OTHER DEALINGS IN THE SOFTWARE. 25*30b9430bSXin Li */ 26*30b9430bSXin Li 27*30b9430bSXin Li#ifndef _CONFIG_H 28*30b9430bSXin Li#define _CONFIG_H 1 29*30b9430bSXin Li 30*30b9430bSXin Li#ifdef __cplusplus 31*30b9430bSXin Liextern "C" { 32*30b9430bSXin Li#endif /* __cplusplus */ 33*30b9430bSXin Li 34*30b9430bSXin Li/** Define to the version of this package. **/ 35*30b9430bSXin Li#cmakedefine PROJECT_VERSION_FULL "${PROJECT_VERSION_FULL}" 36*30b9430bSXin Li 37*30b9430bSXin Li/** Define to 1 if you have the header files. **/ 38*30b9430bSXin Li#cmakedefine HAVE_INTTYPES_H 1 39*30b9430bSXin Li#cmakedefine HAVE_STDDEF_H 1 40*30b9430bSXin Li#cmakedefine HAVE_STDINT_H 1 41*30b9430bSXin Li#cmakedefine HAVE_STDLIB_H 1 42*30b9430bSXin Li#cmakedefine HAVE_STRING_H 1 43*30b9430bSXin Li#cmakedefine HAVE_STRINGS_H 1 44*30b9430bSXin Li#cmakedefine HAVE_MEMORY_H 1 45*30b9430bSXin Li#cmakedefine HAVE_SYS_TYPES_H 1 46*30b9430bSXin Li 47*30b9430bSXin Li/** for WinIO **/ 48*30b9430bSXin Li#cmakedefine HAVE_IO_H 1 49*30b9430bSXin Li#cmakedefine HAVE_FCNTL_H 1 50*30b9430bSXin Li#cmakedefine HAVE__SETMODE 1 51*30b9430bSXin Li#cmakedefine HAVE_SETMODE 1 52*30b9430bSXin Li#cmakedefine HAVE__FILENO 1 53*30b9430bSXin Li#cmakedefine HAVE_FOPEN_S 1 54*30b9430bSXin Li#cmakedefine HAVE__O_BINARY 1 55*30b9430bSXin Li#ifndef HAVE__SETMODE 56*30b9430bSXin Li# if HAVE_SETMODE 57*30b9430bSXin Li# define _setmode setmode 58*30b9430bSXin Li# define HAVE__SETMODE 1 59*30b9430bSXin Li# endif 60*30b9430bSXin Li# if HAVE__SETMODE && !HAVE__O_BINARY 61*30b9430bSXin Li# define _O_BINARY 0 62*30b9430bSXin Li# define HAVE__O_BINARY 1 63*30b9430bSXin Li# endif 64*30b9430bSXin Li#endif 65*30b9430bSXin Li 66*30b9430bSXin Li/** for inline **/ 67*30b9430bSXin Li#ifndef INLINE 68*30b9430bSXin Li# define INLINE @INLINE@ 69*30b9430bSXin Li#endif 70*30b9430bSXin Li 71*30b9430bSXin Li/** for VC++ warning **/ 72*30b9430bSXin Li#ifdef _MSC_VER 73*30b9430bSXin Li#pragma warning(disable: 4127) 74*30b9430bSXin Li#endif 75*30b9430bSXin Li 76*30b9430bSXin Li 77*30b9430bSXin Li#ifdef __cplusplus 78*30b9430bSXin Li} /* extern "C" */ 79*30b9430bSXin Li#endif /* __cplusplus */ 80*30b9430bSXin Li 81*30b9430bSXin Li#endif /* _CONFIG_H */ 82