1
 
/*      Copyright (C) 2004 Garrett A. Kajmowicz
 
2
 
        This file is part of the uClibc++ Library.
 
3
 
        This library is free software; you can redistribute it and/or
 
4
 
        modify it under the terms of the GNU Lesser General Public
 
5
 
        License as published by the Free Software Foundation; either
 
6
 
        version 2.1 of the License, or (at your option) any later version.
 
8
 
        This library is distributed in the hope that it will be useful,
 
9
 
        but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
 
        Lesser General Public License for more details.
 
13
 
        You should have received a copy of the GNU Lesser General Public
 
14
 
        License along with this library; if not, write to the Free Software
 
15
 
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 
#ifndef __BASIC_DEFINITIONS
 
19
 
#define __BASIC_DEFINITIONS 1
 
21
 
#include <system_configuration.h>
 
23
 
#pragma GCC visibility push(default)
 
25
 
//The following is used to support GCC symbol visibility patch
 
27
 
#ifdef GCC_HASCLASSVISIBILITY
 
28
 
        #define _UCXXEXPORT __attribute__ ((visibility("default")))
 
29
 
        #define _UCXXLOCAL __attribute__ ((visibility("hidden")))
 
37
 
#define __UCLIBCXX_NORETURN __attribute__ ((__noreturn__))
 
39
 
#define __UCLIBCXX_NORETURN
 
42
 
#ifdef __UCLIBCXX_HAS_TLS__
 
43
 
        #define __UCLIBCXX_TLS __thread
 
45
 
        #define __UCLIBCXX_TLS
 
51
 
#define __STRING_MAX_UNITS 65535
 
54
 
        typedef signed long int streamsize;
 
57
 
#pragma GCC visibility pop
 
63
 
        #define UCLIBCXX_DEBUG 1
 
65
 
        #define UCLIBCXX_DEBUG 0