# guththila_defines.h

    00001
    00002 /*
    00003  * Licensed to the Apache Software Foundation (ASF) under one or more
    00004  * contributor license agreements.  See the NOTICE file distributed with
    00005  * this work for additional information regarding copyright ownership.
    00006  * The ASF licenses this file to You under the Apache License, Version 2.0
    00007  * (the "License"); you may not use this file except in compliance with
    00008  * the License.  You may obtain a copy of the License at
    00009  *
    00010  *      http://www.apache.org/licenses/LICENSE-2.0
    00011  *
    00012  * Unless required by applicable law or agreed to in writing, software
    00013  * distributed under the License is distributed on an "AS IS" BASIS,
    00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00015  * See the License for the specific language governing permissions and
    00016  * limitations under the License.
    00017  */
    00018 #ifndef GUTHTHILA_DEFINES_H
    00019 #define GUTHTHILA_DEFINES_H
    00020
    00021 #if defined(WIN32)
    00022 #define GUTHTHILA_EXPORT  __declspec(dllexport)
    00023 #else
    00024 #define GUTHTHILA_EXPORT
    00025 #endif
    00026
    00027 #if defined(__GNUC__)
    00028 #if defined(__i386)
    00029 #define GUTHTHILA_CALL __attribute__((cdecl))
    00030 #else
    00031 #define GUTHTHILA_CALL
    00032 #endif
    00033 #else
    00034 #if defined(__unix)
    00035 #define GUTHTHILA_CALL
    00036 #else
    00037 #define GUTHTHILA_CALL __stdcall
    00038 #endif
    00039 #endif
    00040
    00041 #ifndef guththila_char_t
    00042 #define guththila_char_t char
    00043 #endif
    00044
    00045 #ifndef GUTHTHILA_SUCCESS
    00046 #define GUTHTHILA_SUCCESS       1
    00047 #endif
    00048
    00049 #ifndef GUTHTHILA_FAILURE
    00050 #define GUTHTHILA_FAILURE       0
    00051 #endif
    00052
    00053 #ifdef __cplusplus
    00054 #define EXTERN_C_START() extern "C" {
    00055 #define EXTERN_C_END() }
    00056 #else
    00057 #define EXTERN_C_START()
    00058 #define EXTERN_C_END()
    00059 #endif
    00060
    00061 #ifndef GUTHTHILA_EOF
    00062 #define GUTHTHILA_EOF   (-1)
    00063 #endif
    00064
    00065 #ifndef GUTHTHILA_FALSE
    00066 #define GUTHTHILA_FALSE 0
    00067 #endif
    00068
    00069 #ifndef GUTHTHILA_TRUE
    00070 #define GUTHTHILA_TRUE          1
    00071 #endif
    00072
    00073 #endif