8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 15:23:03 +01:00
firebird-mirror/src/include/firebird.h
2014-06-06 10:29:23 +00:00

82 lines
2.0 KiB
C++

/*
* PROGRAM: Firebird RDBMS definitions
* MODULE: firebird.h
* DESCRIPTION: Main Firebird header.
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
* http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
*
* Software distributed under the License is distributed AS IS,
* WITHOUT WARRANTY OF ANY KIND, either express or implied.
* See the License for the specific language governing rights
* and limitations under the License.
*
* The Original Code was created by Mark O'Donohue, Mike Nordell and John Bellardo
* for the Firebird Open Source RDBMS project.
*
* Copyright (c) 2001
* Mark O'Donohue <mark.odonohue@ludwig.edu.au>
* Mike Nordell <tamlin@algonet.se>
* John Bellardo <bellardo@cs.ucsd.edu>
* and all contributors signed below.
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*
* Alex Peshkov
*/
#ifndef INCLUDE_Firebird_H
#define INCLUDE_Firebird_H
#include "gen/autoconfig.h"
// Using our debugging code is pointless when we may use Valgrind features
#if defined(DEV_BUILD) && !defined(USE_VALGRIND)
#define DEBUG_GDS_ALLOC
#endif
#if defined(WIN_NT)
#define FB_DLL_EXPORT __declspec(dllexport)
#elif defined(DARWIN)
#define FB_DLL_EXPORT API_ROUTINE
#else
#define FB_DLL_EXPORT
#endif
//#if defined(SOLX86)
// this pragmas is used only with gcc 2.95!
//#define __PRAGMA_REDEFINE_EXTNAME
//#define __EXTENSIONS__
//
//#endif
//
// Macro for function attribute definition
//
#if defined(__GNUC__)
#define ATTRIBUTE_FORMAT(a, b) __attribute__ ((format(printf, a, b)))
#else
#define ATTRIBUTE_FORMAT(a, b)
#endif
#ifdef __cplusplus
#include "../common/common.h"
#include "fb_exception.h"
#endif
#ifndef NULL
#define NULL 0L
#endif
#if defined(WIN_NT)
#define TRUSTED_AUTH
#endif
// We do not use std::string
#define U_HAVE_STD_STRING 0
#endif // INCLUDE_Firebird_H