Ticket #71226: 0001-timg.cc-define-__STDC_FORMAT_MACROS-if-undefined.patch

File 0001-timg.cc-define-__STDC_FORMAT_MACROS-if-undefined.patch, 718 bytes (added by barracuda156, 4 days ago)

This patch only addresses one issue

  • src/timg.cc

    From 3be8d6e6de76ca3f83368df326497661b427b41c Mon Sep 17 00:00:00 2001
    From: Sergey Fedorov <barracuda@macos-powerpc.org>
    Date: Sat, 2 Nov 2024 10:33:19 +0800
    Subject: [PATCH] timg.cc: define __STDC_FORMAT_MACROS if undefined
    
    ---
     src/timg.cc | 4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git src/timg.cc src/timg.cc
    index 77c08e7..5afef64 100644
     
    6161#    include <poppler.h>
    6262#endif
    6363
     64#ifndef __STDC_FORMAT_MACROS
     65#define __STDC_FORMAT_MACROS
     66#endif
     67
    6468#include <errno.h>
    6569#include <fcntl.h>
    6670#include <getopt.h>
    67 #include <inttypes.h>
     71#include <cinttypes>
    6872#include <libswscale/swscale.h>  // Only needed for version.
    6973#include <math.h>
    7074#include <signal.h>