Issue 117202

Summary: udkapi: Use of undefined macros in header files
Product: App Dev Reporter: renbob.news
Component: apiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: Mac   
OS: Mac OS X 10   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description renbob.news 2011-03-03 21:10:55 UTC
In the OpenOffice.org3.3_SDK package, there are a couple header files that use macros that may not be defined on certain platforms (e.g., OS X).

include/sal/types.h:90

#if (_MSC_VER >= 1000)

This can be changed to:

#if defined(_MSC_VER) && (_MSC_VER >= 1000)

include/osl/diagnose.h: 125

#if OSL_DEBUG_LEVEL > 0

can be changed to:

#if defined(OSL_DEBUG_LEVEL) && (OSL_DEBUG_LEVEL > 0)

There is a similar situation at include/osl/diagnose.h: 150.

Making the above changes will allow the headers to be included while using the gcc -Wundef warning level without generating warnings (a requirement in our system).
Comment 1 Oliver-Rainer Wittmann 2012-06-13 12:30:08 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 2 Marcus 2017-05-20 11:27:40 UTC
Reset assigne to the default "issues@openoffice.apache.org".