summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--soltools/cpp/_macro.c4
-rw-r--r--soltools/mkdepend/include.c4
-rw-r--r--soltools/mkdepend/pr.c5
3 files changed, 13 insertions, 0 deletions
diff --git a/soltools/cpp/_macro.c b/soltools/cpp/_macro.c
index ef41b992edae..fbf496b8f781 100644
--- a/soltools/cpp/_macro.c
+++ b/soltools/cpp/_macro.c
@@ -27,6 +27,8 @@
#endif
#include <limits.h>
+#include <sal/types.h>
+
#include "cpp.h"
#define NCONCAT 16384
@@ -143,7 +145,9 @@ void
{
if (cp != location)
*cp++ = ' ';
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH /* sprintf (macOS 13 SDK) */
sprintf((char *)cp, "%s:%d", s->filename, s->line);
+ SAL_WNODEPRECATED_DECLARATIONS_POP
cp += strlen((char *)cp);
}
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c
index d05a8fd75a7f..7f7955a68984 100644
--- a/soltools/mkdepend/include.c
+++ b/soltools/mkdepend/include.c
@@ -32,6 +32,8 @@ in this Software without prior written authorization from the X Consortium.
#include <string.h>
#include <assert.h>
+#include <sal/types.h>
+
static void remove_dotdot( char * );
static int isdot( char const * );
static int isdotdot( char const * );
@@ -128,7 +130,9 @@ struct inclist *inc_path(char *file, char *include, boolean dot, struct Includes
*/
if (!found)
for (pp = includedirs; *pp; pp++) {
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH /* sprintf (macOS 13 SDK) */
sprintf(path, "%s/%s", *pp, include);
+ SAL_WNODEPRECATED_DECLARATIONS_POP
remove_dotdot(path);
if ((exists_path(incCollection, path)) && stat(path, &st) == 0 && !(st.st_mode & S_IFDIR)) {
ip = newinclude(path, include);
diff --git a/soltools/mkdepend/pr.c b/soltools/mkdepend/pr.c
index 7911502ed813..4d30dd3839bd 100644
--- a/soltools/mkdepend/pr.c
+++ b/soltools/mkdepend/pr.c
@@ -29,6 +29,9 @@ in this Software without prior written authorization from the X Consortium.
#include "def.h"
#include <string.h>
+
+#include <sal/types.h>
+
static size_t pr( struct inclist *ip, char *file,char *base);
extern int width;
@@ -117,8 +120,10 @@ size_t pr(struct inclist *ip, char *file, char *base)
len = (int)strlen(ip->i_file)+4;
if (file != lastfile) {
lastfile = file;
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH /* sprintf (macOS 13 SDK) */
sprintf(buf, "\n%s%s%s: \\\n %s", objprefix, base, objsuffix,
ip->i_file);
+ SAL_WNODEPRECATED_DECLARATIONS_POP
len = (int)strlen(buf);
}
else {