~ubuntu-branches/ubuntu/trusty/x11proto-core/trusty-security

« back to all changes in this revision

Viewing changes to Xfuncproto.h.in

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2013-06-09 14:17:07 UTC
  • mfrom: (1.1.16) (18.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20130609141707-iuyzl2j5kf53nvs9
* New upstream release.
  - handles x32 madness (closes: #695535)
  - handles the lack of restrict on g++/solaris (closes: #695589)

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
#endif /* GNUC >= 4 */
84
84
 
85
85
/* Added in X11R6.9, so available in any version of modular xproto */
86
 
#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__)
 
86
#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__) && !defined(__MINGW32__)
87
87
# define _X_EXPORT      __attribute__((visibility("default")))
88
88
# define _X_HIDDEN      __attribute__((visibility("hidden")))
89
89
# define _X_INTERNAL    __attribute__((visibility("internal")))
161
161
/* requires xproto >= 7.0.21 */
162
162
#ifndef _X_RESTRICT_KYWD
163
163
# if defined(restrict) /* assume autoconf set it correctly */ || \
164
 
   (defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L)) /* C99 */
 
164
    (defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ \
 
165
     && !defined(__cplusplus)) /* Workaround g++ issue on Solaris */
165
166
#  define _X_RESTRICT_KYWD  restrict
166
167
# elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */
167
168
#  define _X_RESTRICT_KYWD __restrict__