aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-07-09 13:10:58 +0100
committerRon Yorston <rmy@pobox.com>2020-07-09 13:10:58 +0100
commit9c0b2f7020d7c30b21a930ef54be632e092e533b (patch)
treeb2187c40bd2fd9f49f73599fb08e52cb7a596de0 /include
parenta8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7 (diff)
parentd21a63f9fca8eb16f79de9b72d4a3484dfaec1fc (diff)
downloadbusybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.tar.gz
busybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.tar.bz2
busybox-w32-9c0b2f7020d7c30b21a930ef54be632e092e533b.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
-rw-r--r--include/platform.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 7077f0e0d..32f4c4126 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -316,6 +316,7 @@ typedef unsigned long uoff_t;
316/* scary. better ideas? (but do *test* them first!) */ 316/* scary. better ideas? (but do *test* them first!) */
317#define OFF_T_MAX ((off_t)~((off_t)1 << (sizeof(off_t)*8-1))) 317#define OFF_T_MAX ((off_t)~((off_t)1 << (sizeof(off_t)*8-1)))
318/* Users report bionic to use 32-bit off_t even if LARGEFILE support is requested. 318/* Users report bionic to use 32-bit off_t even if LARGEFILE support is requested.
319 * On musl, !ENABLE_LFS on 32-bit arches thinks that off_t is 32-bit.
319 * We misdetected that. Don't let it build: 320 * We misdetected that. Don't let it build:
320 */ 321 */
321struct BUG_off_t_size_is_misdetected { 322struct BUG_off_t_size_is_misdetected {
@@ -1428,8 +1429,10 @@ static inline void __attribute__ ((deprecated("use bb_simple_info_msg instead"))
1428#define bb_perror_msg_and_die(...) BB_MSG(_perror_msg_and_die, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__) 1429#define bb_perror_msg_and_die(...) BB_MSG(_perror_msg_and_die, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__)
1429#define bb_herror_msg(...) BB_MSG(_herror_msg, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__) 1430#define bb_herror_msg(...) BB_MSG(_herror_msg, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__)
1430#define bb_herror_msg_and_die(...) BB_MSG(_herror_msg_and_die, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__) 1431#define bb_herror_msg_and_die(...) BB_MSG(_herror_msg_and_die, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__)
1432#if ENABLE_FEATURE_SYSLOG_INFO
1431#define bb_info_msg(...) BB_MSG(_info_msg, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__) 1433#define bb_info_msg(...) BB_MSG(_info_msg, BB_MSG_KIND(__VA_ARGS__), __VA_ARGS__)
1432#endif 1434#endif
1435#endif
1433 1436
1434/* We need to export XXX_main from libbusybox 1437/* We need to export XXX_main from libbusybox
1435 * only if we build "individual" binaries 1438 * only if we build "individual" binaries
diff --git a/include/platform.h b/include/platform.h
index afd8cf292..f1c09c4d2 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -39,6 +39,10 @@
39# endif 39# endif
40#endif 40#endif
41 41
42#if !__GNUC_PREREQ(5,0)
43# define deprecated(msg) deprecated
44#endif
45
42#undef inline 46#undef inline
43#if defined(__STDC_VERSION__) && __STDC_VERSION__ > 199901L 47#if defined(__STDC_VERSION__) && __STDC_VERSION__ > 199901L
44/* it's a keyword */ 48/* it's a keyword */