From 8b4ace9c50842c5b83401ea7b179dcab940387e1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 23 Sep 2020 10:22:15 +0100 Subject: gentoo resync : 23.09.2020 --- .../picp/files/picp-0.6.8-C99-stdbool.patch | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 dev-embedded/picp/files/picp-0.6.8-C99-stdbool.patch (limited to 'dev-embedded/picp/files/picp-0.6.8-C99-stdbool.patch') diff --git a/dev-embedded/picp/files/picp-0.6.8-C99-stdbool.patch b/dev-embedded/picp/files/picp-0.6.8-C99-stdbool.patch new file mode 100644 index 000000000000..f458a5674621 --- /dev/null +++ b/dev-embedded/picp/files/picp-0.6.8-C99-stdbool.patch @@ -0,0 +1,83 @@ +--- a/atoi_base.h ++++ b/atoi_base.h +@@ -17,6 +17,8 @@ + #ifndef __ATOI_BASE_H_ + #define __ATOI_BASE_H_ + ++#include ++ + #ifdef WIN32 + #define bool int + #endif +--- a/parse.h ++++ b/parse.h +@@ -17,6 +17,8 @@ + #ifndef __PARSE_H_ + #define __PARSE_H_ + ++#include ++ + bool GetNextByte(FILE *theFile, unsigned int *address, unsigned char *data); + void InitParse(); + +--- a/picsnoop/dos/serial.h ++++ b/picsnoop/dos/serial.h +@@ -2,7 +2,7 @@ + #ifndef __SERIAL_H_ + #define __SERIAL_H_ + +-#define bool int ++#include + + #define KEYINT int86(0x16, ®s, ®s) + #define KBHEAD 0x41a +@@ -10,15 +10,12 @@ + + + #ifndef FALSE +-#define FALSE 0 ++#define FALSE false + #endif + #ifndef TRUE +-#define TRUE 1 ++#define TRUE true + #endif + +-#define false FALSE +-#define true TRUE +- + #define INUM1 12 // interrupt vector for com1 + #define INUM2 11 // interrupt vector for com2 + +--- a/picsnoop/serial.h ++++ b/picsnoop/serial.h +@@ -2,6 +2,8 @@ + #ifndef __SERIAL_H_ + #define __SERIAL_H_ + ++#include ++ + #ifdef WIN32 + #define bool int + #endif +--- a/record.c ++++ b/record.c +@@ -49,6 +49,7 @@ + //----------------------------------------------------------------------------- + + #include ++#include + + #ifdef WIN32 + #include +--- a/serial.h ++++ b/serial.h +@@ -17,6 +17,8 @@ + #ifndef __SERIAL_H_ + #define __SERIAL_H_ + ++#include ++ + #ifdef WIN32 + #define bool int + #endif -- cgit v1.2.3