~ubuntu-branches/ubuntu/oneiric/gnutls26/oneiric

« back to all changes in this revision

Viewing changes to lib/gl/stdint.in.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2001-2002, 2004-2009 Free Software Foundation, Inc.
 
1
/* Copyright (C) 2001-2002, 2004-2010 Free Software Foundation, Inc.
2
2
   Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood.
3
3
   This file is part of gnulib.
4
4
 
23
23
 
24
24
#ifndef _GL_STDINT_H
25
25
 
 
26
#if __GNUC__ >= 3
 
27
@PRAGMA_SYSTEM_HEADER@
 
28
#endif
 
29
 
26
30
/* When including a system file that in turn includes <inttypes.h>,
27
31
   use the system <inttypes.h>, not our substitute.  This avoids
28
32
   problems with (for example) VMS, whose <sys/bitypes.h> includes
49
53
     in <inttypes.h> would reinclude us, skipping our contents because
50
54
     _GL_STDINT_H is defined.
51
55
     The include_next requires a split double-inclusion guard.  */
52
 
# if __GNUC__ >= 3
53
 
@PRAGMA_SYSTEM_HEADER@
54
 
# endif
55
56
# @INCLUDE_NEXT@ @NEXT_STDINT_H@
56
57
#endif
57
58
 
102
103
  ((signed) \
103
104
   ? ~ _STDINT_MIN (signed, bits, zero) \
104
105
   : /* The expression for the unsigned case.  The subtraction of (signed) \
105
 
        is a nop in the unsigned case and avoids "signed integer overflow" \
106
 
        warnings in the signed case.  */ \
 
106
        is a nop in the unsigned case and avoids "signed integer overflow" \
 
107
        warnings in the signed case.  */ \
107
108
     ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
108
109
 
109
110
/* 7.18.1.1. Exact-width integer types */
454
455
#undef SIG_ATOMIC_MAX
455
456
#define SIG_ATOMIC_MIN  \
456
457
   _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
457
 
                0@SIG_ATOMIC_T_SUFFIX@)
 
458
                0@SIG_ATOMIC_T_SUFFIX@)
458
459
#define SIG_ATOMIC_MAX  \
459
460
   _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
460
 
                0@SIG_ATOMIC_T_SUFFIX@)
 
461
                0@SIG_ATOMIC_T_SUFFIX@)
461
462
 
462
463
 
463
464
/* size_t limit */