Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/monetary.h
+++ new/usr/src/head/monetary.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 + *
23 25 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 26 * Use is subject to license terms.
25 27 */
26 -/*
27 - * Copyright 2013 Garrett D'Amore <garrett@damore.org>
28 - */
29 28
30 29 #ifndef _MONETARY_H
31 30 #define _MONETARY_H
32 31
33 32 #include <sys/feature_tests.h>
34 33 #include <sys/types.h>
35 34
36 35 #ifdef __cplusplus
37 36 extern "C" {
38 37 #endif
39 38
40 -#if defined(__STDC__)
41 39 extern ssize_t strfmon(char *_RESTRICT_KYWD, size_t,
42 40 const char *_RESTRICT_KYWD, ...);
43 41
44 42 #if defined(_XPG7) || (!defined(_STRICT_STRICT_SYMBOLS))
45 43
46 44 #ifndef _LOCALE_T
47 45 #define _LOCALE_T
48 46 typedef struct _locale *locale_t;
49 47 #endif
50 48
51 49 extern ssize_t strfmon_l(char *_RESTRICT_KYWD, size_t, locale_t,
52 50 const char *_RESTRICT_KYWD, ...);
53 51 #endif
54 52
55 -#else
56 -extern ssize_t strfmon();
57 -extern ssize_t strfmon_l();
58 -#endif
59 -
60 53 #ifdef __cplusplus
61 54 }
62 55 #endif
63 56
64 57 #endif /* _MONETARY_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX