fix build with clang, actually a problem in cups

This commit is contained in:
sebastia 2013-05-15 15:36:11 +00:00
parent 372b91ffec
commit 786014dca5
4 changed files with 50 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.28 2013/04/25 16:16:28 sebastia Exp $
# $OpenBSD: Makefile,v 1.29 2013/05/15 15:36:11 sebastia Exp $
COMMENT= GNUstep gui library
DISTNAME = gnustep-gui-0.23.1
REVISION = 0
CATEGORIES= devel

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-Printing_GSCUPS_GSCUPSPrintInfo_m,v 1.1 2013/05/15 15:36:11 sebastia Exp $
Fixing bad assumption in cups
--- Printing/GSCUPS/GSCUPSPrintInfo.m.orig Thu May 2 17:18:50 2013
+++ Printing/GSCUPS/GSCUPSPrintInfo.m Thu May 2 17:19:16 2013
@@ -32,7 +32,9 @@
#import "AppKit/NSPrinter.h"
#import "GSCUPSPrintInfo.h"
#import "GSCUPSPrinter.h"
+#undef __BLOCKS__
#include <cups/cups.h>
+#define __BLOCKS__
@implementation GSCUPSPrintInfo

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-Printing_GSCUPS_GSCUPSPrintOperation_m,v 1.1 2013/05/15 15:36:11 sebastia Exp $
fix against wrong assumption in cups
--- Printing/GSCUPS/GSCUPSPrintOperation.m.orig Thu May 2 17:21:04 2013
+++ Printing/GSCUPS/GSCUPSPrintOperation.m Thu May 2 17:21:23 2013
@@ -41,7 +41,9 @@
#import <AppKit/NSPrintOperation.h>
#import "GSGuiPrivate.h"
#import "GSCUPSPrintOperation.h"
+#undef __BLOCKS__
#include <cups/cups.h>
+#define __BLOCKS__
//A subclass of GSPrintOperation, NOT NSPrintOperation.

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-Printing_GSCUPS_GSCUPSPrinter_m,v 1.1 2013/05/15 15:36:11 sebastia Exp $
fix against wrong assumption in cups
--- Printing/GSCUPS/GSCUPSPrinter.m.orig Thu May 2 17:21:55 2013
+++ Printing/GSCUPS/GSCUPSPrinter.m Thu May 2 17:22:18 2013
@@ -48,7 +48,9 @@
#import "GNUstepGUI/GSPrinting.h"
#import "GSCUPSPrinter.h"
+#undef __BLOCKS__
#include <cups/cups.h>
+#define __BLOCKS__
NSString *GSCUPSDummyPrinterName = @"GSCUPSDummyPrinter";