aboutsummaryrefslogtreecommitdiff
path: root/portable/dummy.c
blob: e5a6224ca227a48b5e1941c181d5fd63ed925c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*  $Id$
**
**  Dummy symbol to prevent an empty library.
**
**  Written by Russ Allbery <rra@stanford.edu>
**  This work is hereby placed in the public domain by its author.
**
**  On platforms that already have all of the functions that libportable would
**  supply, Automake builds an empty library and then calls ar with
**  nonsensical arguments.  Ensure that libportable always contains at least
**  one symbol.
*/

/* Prototype to avoid gcc warnings. */
int portable_dummy(void);

int
portable_dummy(void)
{
    return 42;
}