opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0025-Use-long-long-with-C99-compilers.patch (720B)


      1 From f731106313a5edc37b5cbef93da6be855f24c238 Mon Sep 17 00:00:00 2001
      2 From: Michael Forney <mforney@mforney.org>
      3 Date: Sat, 15 Jun 2019 18:16:56 -0700
      4 Subject: [PATCH] Use `long long` with C99 compilers
      5 
      6 ---
      7  unzpriv.h | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/unzpriv.h b/unzpriv.h
     11 index dc9eff5..8f18b87 100644
     12 --- a/unzpriv.h
     13 +++ b/unzpriv.h
     14 @@ -1904,7 +1904,7 @@
     15  
     16  #ifdef ZIP64_SUPPORT
     17  # ifndef Z_UINT8_DEFINED
     18 -#   if (defined(__GNUC__) || defined(__hpux) || defined(__SUNPRO_C))
     19 +#   if (defined(__GNUC__) || defined(__hpux) || defined(__SUNPRO_C) || __STDC_VERSION__ > 199901L)
     20    typedef unsigned long long    z_uint8;
     21  #   else
     22    typedef unsigned __int64      z_uint8;
     23 -- 
     24 2.20.1
     25