Relax constraints on Machine_Attribute argument types:
[official-gcc.git] / gcc / gthr-gnat.h
bloba10aa80c776a73b2b8f47041a708e544931aa0f3
1 /* Threads compatibility routines for libgcc2. */
2 /* Compile this one with gcc. */
3 /* Copyright (C) 2003, 2004, 2008, 2009 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 Under Section 7 of GPL version 3, you are granted additional
17 permissions described in the GCC Runtime Library Exception, version
18 3.1, as published by the Free Software Foundation.
20 You should have received a copy of the GNU General Public License and
21 a copy of the GCC Runtime Library Exception along with this program;
22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 <http://www.gnu.org/licenses/>. */
25 #ifndef GCC_GTHR_GNAT_H
26 #define GCC_GTHR_GNAT_H
28 #ifndef HIDE_EXPORTS
29 #pragma GCC visibility push(default)
30 #endif
32 /* Just provide compatibility for mutex handling. */
34 typedef int __gthread_mutex_t;
36 #define __GTHREAD_MUTEX_INIT 0
38 extern void __gnat_install_locks (void (*) (void), void (*) (void));
39 extern int __gthread_active_p (void);
40 extern int __gthread_mutex_lock (__gthread_mutex_t *);
41 extern int __gthread_mutex_unlock (__gthread_mutex_t *);
43 #ifndef HIDE_EXPORTS
44 #pragma GCC visibility pop
45 #endif
47 #endif /* ! GCC_GTHR_GNAT_H */