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