File nsgminer-redefinition-of-typedefs.patch of Package nsgminer

From 0432ac398c5b3912eaff403f20303829cb1878a1 Mon Sep 17 00:00:00 2001
From: yukoff <yury.buldakov@gmail.com>
Date: Sun, 17 Dec 2017 05:16:46 +0200
Subject: [PATCH 2/2] nsgminer redefinition of typedefs

Solution was suggested here:
https://forum.feathercoin.com/topic/8235/nsgminer-v0-9-2-the-fastest-feathercoin-neoscrypt-gpu-miner/67
---
 miner.h     | 4 ++++
 neoscrypt.h | 8 ++++++++
 2 files changed, 12 insertions(+)

diff --git a/miner.h b/miner.h
index 3302a96..5acc85f 100644
--- a/miner.h
+++ b/miner.h
@@ -28,11 +28,15 @@
 #include <jansson.h>
 #include <curl/curl.h>
 
+#if !(uchar)
 typedef unsigned char uchar;
+#endif
 #if !(uint)
 typedef unsigned int uint;
 #endif
+#if !(ullong)
 typedef unsigned long long ullong;
+#endif
 
 #include <blkmaker.h>
 #include <blktemplate.h>
diff --git a/neoscrypt.h b/neoscrypt.h
index 2f22c2b..6b73f59 100644
--- a/neoscrypt.h
+++ b/neoscrypt.h
@@ -6,10 +6,18 @@
 void neoscrypt(const unsigned char *password, unsigned char *output,
   unsigned int profile);
 
+#if !(ullong)
 typedef unsigned long long ullong;
+#endif
+#if !(llong)
 typedef signed long long llong;
+#endif
+#if !(uint)
 typedef unsigned int uint;
+#endif
+#if !(uchar)
 typedef unsigned char uchar;
+#endif
 
 #ifndef MIN
 #define MIN(a, b) ((a) < (b) ? a : b)
-- 
2.14.2