~ubuntu-branches/ubuntu/saucy/libxfont/saucy-security

« back to all changes in this revision

Viewing changes to src/stubs/stubs.h

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2010-11-19 01:17:48 UTC
  • mfrom: (1.1.13 upstream) (10.1.8 experimental)
  • Revision ID: james.westby@ubuntu.com-20101119011748-k5809pbrfmwd0ywd
Tags: 1:1.4.3-1
* New upstream release.
* Bump xutils-dev build-dep for new macros.
* Add xmlto, xorg-sgml-doctools, and w3m build-dep for the doc.
* Pass --with-xmlto and --without-fop for the regular build (we want
  html and txt only). Disable both for the udeb build.
* Tweak doc filenames, and handle that through dh_install.
* Add --fail-missing -XlibXfont.la for the second dh_install call (the
  udeb one), for additional safety.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XFree86: xc/lib/font/stubs/stubs.h,v 1.3 1999/12/15 01:14:36 robin Exp $ */
2
 
 
3
1
#include <stdio.h>
4
2
#include <X11/fonts/fntfilst.h>
5
3
#include <X11/fonts/font.h>
12
10
#endif
13
11
 
14
12
/* this probably works for Mach-O too, but probably not for PE */
15
 
#if defined(__ELF__) && defined(__GNUC__) && (__GNUC__ >= 3)
 
13
#if (defined(__APPLE__) || defined(__ELF__)) && defined(__GNUC__) && (__GNUC__ >= 3)
16
14
#define weak __attribute__((weak))
17
15
#else
18
16
#define weak
 
17
#ifndef __SUNPRO_C /* Sun compilers use #pragma weak in .c files instead */
 
18
#define NO_WEAK_SYMBOLS
 
19
#endif
 
20
#endif
 
21
 
 
22
/* This is really just a hack for now... __APPLE__ really should be using
 
23
 * the weak symbols route above, but it's causing an as-yet unresolved issue,
 
24
 * so we're instead building with flat_namespace.
 
25
 */
 
26
#ifdef __APPLE__
 
27
#undef weak
 
28
#define weak
19
29
#endif
20
30
 
21
31
extern FontPtr find_old_font ( FSID id );