~ubuntu-branches/ubuntu/wily/libtrio/wily-proposed

« back to all changes in this revision

Viewing changes to triodef.h

  • Committer: Package Import Robot
  • Author(s): Balint Reczey
  • Date: 2014-07-16 16:42:37 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140716164237-97kbsenzcbpn4nsg
Tags: 1.16+dfsg1-1
* New upstream release
  - Fixed accuracy problems on platforms with double-double support.
    (Closes: #747012)
* Exclude generated documentation from .orig tarball using debian/copyright
* Drop 0001-build-shared-lib.patch since it has been integrated upstream
* Update mangling in debian/watch
* Bump .so version and library package name
* Migrate to symbols file from shlibs file
* Bump standards version, no changes needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*************************************************************************
2
2
 *
3
 
 * $Id: triodef.h,v 1.35 2009/09/20 11:37:14 breese Exp $
 
3
 * $Id$
4
4
 *
5
5
 * Copyright (C) 2001 Bjorn Reese <breese@users.sourceforge.net>
6
6
 *
142
142
# endif
143
143
#endif
144
144
 
 
145
#if defined(__powerpc) || defined(__powerpc__) || defined(_ARCH_PPC)
 
146
# define TRIO_CPU_POWERPC
 
147
#endif
 
148
 
 
149
#if defined(__sparc) || defined(__sparc__)
 
150
# define TRIO_CPU_SPARC
 
151
#endif
 
152
 
 
153
#if defined(__s390x__) || defined(__zarch__) || defined(__SYSC_ZARCH__)
 
154
# define TRIO_CPU_SYSTEMZ
 
155
#endif
 
156
 
145
157
/*************************************************************************
146
158
 * Standards support detection
147
159
 */
154
166
#if defined(__STDC_VERSION__)
155
167
# define PREDEF_STANDARD_C90
156
168
#endif
157
 
#if (__STDC_VERSION__ - 0 >= 199409L)
 
169
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199409L)
158
170
# define PREDEF_STANDARD_C94
159
171
#endif
160
 
#if (__STDC_VERSION__ - 0 >= 199901L)
 
172
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
161
173
# define PREDEF_STANDARD_C99
162
174
#endif
163
175
#if defined(TRIO_COMPILER_SUNPRO) && (TRIO_COMPILER_SUNPRO >= 0x420)
169
181
#if defined(__cplusplus)
170
182
# define PREDEF_STANDARD_CXX
171
183
#endif
172
 
#if __cplusplus - 0 >= 199711L
 
184
#if defined(__cplusplus) && (__cplusplus >= 199711L)
173
185
# define PREDEF_STANDARD_CXX89
174
186
#endif
175
187
 
206
218
 */
207
219
 
208
220
#if !defined(TRIO_PUBLIC)
209
 
# define TRIO_PUBLIC
 
221
/* Based on http://gcc.gnu.org/wiki/Visibility */
 
222
# if defined(TRIO_PLATFORM_WIN32) || defined (__CYGWIN__)
 
223
#  if defined(BUILDING_DLL)
 
224
#   if defined(TRIO_COMPILER_GCC)
 
225
#    define TRIO_PUBLIC __attribute__ ((dllexport))
 
226
#   else
 
227
#    define TRIO_PUBLIC __declspec(dllexport)
 
228
#   endif
 
229
#  else
 
230
#   if defined(TRIO_COMPILER_GCC)
 
231
#    define TRIO_PUBLIC __attribute__ ((dllimport))
 
232
#   else
 
233
#    define TRIO_PUBLIC __declspec(dllimport)
 
234
#   endif
 
235
#  endif
 
236
# else
 
237
#  if defined(TRIO_COMPILER_GCC) && __GNUC__ >= 4
 
238
#   define TRIO_PUBLIC __attribute__ ((visibility ("default")))
 
239
#   define TRIO_PRIVATE __attribute__ ((visibility ("hidden")))
 
240
#  else
 
241
#   define TRIO_PUBLIC
 
242
#  endif
 
243
# endif
210
244
#endif
211
245
#if !defined(TRIO_PRIVATE)
212
246
# define TRIO_PRIVATE static
232
266
# define TRIO_ARGS5(list,a1,a2,a3,a4,a5) list a1; a2; a3; a4; a5;
233
267
# define TRIO_ARGS6(list,a1,a2,a3,a4,a5,a6) list a1; a2; a3; a4; a5; a6;
234
268
# define TRIO_ARGS7(list,a1,a2,a3,a4,a5,a6,a7) list a1; a2; a3; a4; a5; a6; a7;
 
269
# define TRIO_ARGS8(list,a1,a2,a3,a4,a5,a6,a7,a8) list a1; a2; a3; a4; a5; a6; a7; a8;
235
270
# define TRIO_VARGS2(list,a1,a2) list a1; a2
236
271
# define TRIO_VARGS3(list,a1,a2,a3) list a1; a2; a3
237
272
# define TRIO_VARGS4(list,a1,a2,a3,a4) list a1; a2; a3; a4
255
290
# define TRIO_ARGS5(list,a1,a2,a3,a4,a5) (a1,a2,a3,a4,a5)
256
291
# define TRIO_ARGS6(list,a1,a2,a3,a4,a5,a6) (a1,a2,a3,a4,a5,a6)
257
292
# define TRIO_ARGS7(list,a1,a2,a3,a4,a5,a6,a7) (a1,a2,a3,a4,a5,a6,a7)
 
293
# define TRIO_ARGS8(list,a1,a2,a3,a4,a5,a6,a7,a8) (a1,a2,a3,a4,a5,a6,a7,a8)
258
294
# define TRIO_VARGS2 TRIO_ARGS2
259
295
# define TRIO_VARGS3 TRIO_ARGS3
260
296
# define TRIO_VARGS4 TRIO_ARGS4
332
368
# endif
333
369
#endif
334
370
 
 
371
# if defined(TRIO_CPU_POWERPC) || defined(TRIO_CPU_SPARC) || defined(TRIO_CPU_SYSTEMZ)
 
372
#  define TRIO_DOUBLE_DOUBLE
 
373
# endif
 
374
 
335
375
#endif /* TRIO_TRIODEF_H */