OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1997--2020 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2020 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #define LIBC_EXTENSION_HH | 21 #define LIBC_EXTENSION_HH |
22 | 22 |
23 #include <cstddef> | 23 #include <cstddef> |
24 #include <cstdarg> | 24 #include <cstdarg> |
25 | 25 |
26 #include "config.hh" | 26 #include "config.hh" |
27 | 27 |
28 char *strnlwr (char *start, size_t n); | 28 char *strnlwr (char *start, size_t n); |
29 char *strnupr (char *start, size_t n); | 29 char *strnupr (char *start, size_t n); |
30 | 30 |
31 #if ! HAVE_MEMMEM /* GNU extension. */ | |
32 void *memmem (void const *haystack, int haystack_len, | |
33 void const *needle, int needle_len); | |
34 #endif /* HAVE_MEMMEM */ | |
35 | |
36 double my_round (double); | 31 double my_round (double); |
37 | 32 |
38 /* namespace std { */ | 33 /* namespace std { */ |
39 | 34 |
40 #if ! HAVE_SNPRINTF /* GNU extension. */ | 35 #if ! HAVE_SNPRINTF /* GNU extension. */ |
41 int snprintf (char *str, size_t n, char const *format, ...); | 36 int snprintf (char *str, size_t n, char const *format, ...); |
42 __attribute__ ((format (printf, 3, 4))); | 37 __attribute__ ((format (printf, 3, 4))); |
43 #endif | 38 #endif |
44 | 39 |
45 #if ! HAVE_VSNPRINTF /* GNU extension. */ | 40 #if ! HAVE_VSNPRINTF /* GNU extension. */ |
46 int vsnprintf (char *str, size_t, char const *format, va_list args); | 41 int vsnprintf (char *str, size_t, char const *format, va_list args); |
47 #endif | 42 #endif |
48 | 43 |
49 /* }; */ | 44 /* }; */ |
50 | 45 |
51 #endif /* LIBC_EXTENSION_HH */ | 46 #endif /* LIBC_EXTENSION_HH */ |
OLD | NEW |