/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/utility/basic_definitions

  • Committer: edam
  • Date: 2012-02-25 01:31:43 UTC
  • Revision ID: tim@ed.am-20120225013143-9fet2y2d3fjlrwez
added ulibc

Show diffs side-by-side

added added

removed removed

 
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.
 
7
 
 
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.
 
12
 
 
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
 
16
*/
 
17
 
 
18
#ifndef __BASIC_DEFINITIONS
 
19
#define __BASIC_DEFINITIONS 1
 
20
 
 
21
#include <system_configuration.h>
 
22
 
 
23
#pragma GCC visibility push(default)
 
24
 
 
25
//The following is used to support GCC symbol visibility patch
 
26
 
 
27
#ifdef GCC_HASCLASSVISIBILITY
 
28
        #define _UCXXEXPORT __attribute__ ((visibility("default")))
 
29
        #define _UCXXLOCAL __attribute__ ((visibility("hidden")))
 
30
#else
 
31
        #define _UCXXEXPORT
 
32
        #define _UCXXLOCAL
 
33
 
 
34
#endif
 
35
 
 
36
#ifdef __GCC__
 
37
#define __UCLIBCXX_NORETURN __attribute__ ((__noreturn__))
 
38
#else
 
39
#define __UCLIBCXX_NORETURN
 
40
#endif
 
41
 
 
42
#ifdef __UCLIBCXX_HAS_TLS__
 
43
        #define __UCLIBCXX_TLS __thread
 
44
#else
 
45
        #define __UCLIBCXX_TLS
 
46
#endif
 
47
 
 
48
 
 
49
 
 
50
//Testing purposes
 
51
#define __STRING_MAX_UNITS 65535
 
52
 
 
53
namespace std{
 
54
        typedef signed long int streamsize;
 
55
}
 
56
 
 
57
#pragma GCC visibility pop
 
58
 
 
59
#endif
 
60
 
 
61
 
 
62
#ifdef __DODEBUG__
 
63
        #define UCLIBCXX_DEBUG 1
 
64
#else
 
65
        #define UCLIBCXX_DEBUG 0
 
66
#endif