mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-31 06:43:02 +01:00
101 lines
2.5 KiB
C++
101 lines
2.5 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"
|
|
|
|
// Vulcan definitions
|
|
#ifdef NAMESPACE
|
|
namespace NAMESPACE{} // declare namespace before use
|
|
using namespace NAMESPACE;
|
|
#define START_NAMESPACE namespace NAMESPACE {
|
|
#define CLASS(cls) namespace NAMESPACE { class cls; }
|
|
#define END_NAMESPACE }
|
|
#else
|
|
#define START_NAMESPACE
|
|
#define CLASS(cls) class cls;
|
|
#define END_NAMESPACE
|
|
#endif
|
|
|
|
// 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)
|
|
#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 "fb_exception.h"
|
|
#endif
|
|
|
|
// from thd.h
|
|
#if defined(HAVE_POSIX_THREADS)
|
|
#define USE_POSIX_THREADS
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL 0L
|
|
#endif
|
|
|
|
#if defined(WIN_NT) && defined(SUPERSERVER) && !defined(EMBEDDED)
|
|
// Comment this definition to build without priority scheduler
|
|
// OR:
|
|
// Uncomment this definition to build with priority scheduler
|
|
#define THREAD_PSCHED
|
|
#endif
|
|
|
|
#if defined(WIN_NT)
|
|
#define TRUSTED_AUTH
|
|
#endif
|
|
|
|
#endif /* INCLUDE_Firebird_H */
|