Ticket #8306: 0005-Conditionally-set-DEBUG-if-it-s-not-already-defined-.patch

File 0005-Conditionally-set-DEBUG-if-it-s-not-already-defined-.patch, 840 bytes (added by umccullough, 8 years ago)
  • src/add-ons/print/drivers/pdf/source/Link.cpp

    From fc2fe07a3cf9cab9ea918e609f90c6549cc5731e Mon Sep 17 00:00:00 2001
    From: Urias McCullough <umccullough@gmail.com>
    Date: Sat, 28 Jan 2012 21:39:15 -0800
    Subject: [PATCH 5/5] Conditionally set DEBUG if it's not already defined in pdf printer driver
    
    * This allows building with DEBUG=2 and avoiding warnings.
    ---
     src/add-ons/print/drivers/pdf/source/Link.cpp |    5 ++++-
     1 files changed, 4 insertions(+), 1 deletions(-)
    
    diff --git a/src/add-ons/print/drivers/pdf/source/Link.cpp b/src/add-ons/print/drivers/pdf/source/Link.cpp
    index 083eadb..25ba1ec 100644
    a b THE SOFTWARE.  
    2727
    2828*/
    2929
    30 #define DEBUG 1
     30#ifndef DEBUG
     31    #define DEBUG 1
     32#endif
     33
    3134#include <Debug.h>
    3235#include <ctype.h>
    3336#include "Link.h"