Author: Alastair McKinstry <mckinstry@debian.org>
Description: Fix for 64-bit definition for int
 Thanks to Giuseppe Bilotta
Bug-Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823226
Forwarded: no
Last-Updated: 2016-12-11

Index: g2clib-1.6.2/grib2.h
===================================================================
--- g2clib-1.6.2.orig/grib2.h
+++ g2clib-1.6.2/grib2.h
@@ -148,17 +148,16 @@
 */
 #ifndef _grib2_H
 #define _grib2_H
+
 #include<stdio.h>
+#include <stdint.h>
 
 #define G2_VERSION "g2clib-1.6.2"
 
-#ifdef __64BIT__
-typedef int g2int;
-typedef unsigned int g2intu;
-#else
-typedef long g2int;
-typedef unsigned long g2intu;
-#endif
+
+typedef int64_t g2int;
+typedef uint64_t g2intu;
+
 typedef float g2float;
 
 struct gtemplate {
