]> eyrie.org Git - kerberos/krb5-strength.git/blob - portable/dummy.c
New upstream version 3.1
[kerberos/krb5-strength.git] / portable / dummy.c
1 /*
2  * Dummy symbol to prevent an empty library.
3  *
4  * On platforms that already have all of the functions that libportable would
5  * supply, Automake builds an empty library and then calls ar with nonsensical
6  * arguments.  Ensure that libportable always contains at least one symbol.
7  *
8  * The canonical version of this file is maintained in the rra-c-util package,
9  * which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
10  *
11  * Written by Russ Allbery <eagle@eyrie.org>
12  *
13  * The authors hereby relinquish any claim to any copyright that they may have
14  * in this work, whether granted under contract or by operation of law or
15  * international treaty, and hereby commit to the public, at large, that they
16  * shall not, at any time in the future, seek to enforce any copyright in this
17  * work against any person or entity, or prevent any person or entity from
18  * copying, publishing, distributing or creating derivative works of this
19  * work.
20  */
21
22 #include <portable/macros.h>
23
24 /* Prototype to avoid gcc warnings and set visibility. */
25 int portable_dummy(void) __attribute__((__visibility__("hidden")));
26
27 int
28 portable_dummy(void)
29 {
30     return 42;
31 }