Remove possible warnings when compiling with -Wundef
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
2bb91d900c
commit
cd7b6a8e87
@ -129,7 +129,7 @@ int Fl_Cocoa_Printer_Driver::start_job (int pagecount, int *frompage, int *topag
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#if !__LP64__
|
||||
#if !defined(__LP64__) || !__LP64__
|
||||
Boolean accepted;
|
||||
status = PMCreateSession(&printSession);
|
||||
if (status != noErr) return 1;
|
||||
@ -292,7 +292,7 @@ int Fl_Cocoa_Printer_Driver::start_page (void)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
#if ! __LP64__
|
||||
#if !defined(__LP64__) || !__LP64__
|
||||
PMSessionGetGraphicsContext_type PMSessionGetGraphicsContext =
|
||||
(PMSessionGetGraphicsContext_type)Fl_Darwin_System_Driver::get_carbon_function("PMSessionGetGraphicsContext");
|
||||
status = PMSessionGetGraphicsContext(printSession, NULL, (void **)&gc);
|
||||
@ -352,7 +352,7 @@ void Fl_Cocoa_Printer_Driver::end_job (void)
|
||||
fl_alert ("PM Session error %d", (int)status);
|
||||
}
|
||||
PMSessionEndDocumentNoDialog(printSession);
|
||||
#if !__LP64__
|
||||
#if !defined(__LP64__) || !__LP64__
|
||||
if (fl_mac_os_version < 100500) {
|
||||
PMRelease(printSettings);
|
||||
PMRelease(pageFormat);
|
||||
|
@ -47,7 +47,7 @@ static uchar *convert_BGRA_to_RGB(uchar *baseAddress, int w, int h, int mByteWid
|
||||
for (int i = h-1; i >= 0; i--) {
|
||||
uchar *from = baseAddress + i * mByteWidth;
|
||||
for (int j = 0; j < w; j++, from += 4) {
|
||||
#if __ppc__
|
||||
#if defined(__ppc__) && __ppc__
|
||||
memcpy(to, from + 1, 3);
|
||||
to += 3;
|
||||
#else
|
||||
|
@ -40,7 +40,7 @@ static CFMutableDictionaryRef attributes = NULL;
|
||||
|
||||
static const int CoreText_threshold = 100500; // this represents Mac OS 10.5
|
||||
// condition for the ATSU API to be available at compile time
|
||||
#define HAS_ATSU (!__LP64__) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11
|
||||
#define HAS_ATSU (!defined(__LP64__) || !__LP64__) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11
|
||||
|
||||
// Bug: older versions calculated the value for *ap as a side effect of
|
||||
// making the name, and then forgot about it. To avoid having to change
|
||||
|
Loading…
Reference in New Issue
Block a user