Issue 117202 - udkapi: Use of undefined macros in header files
Summary: udkapi: Use of undefined macros in header files
Status: UNCONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: Mac Mac OS X 10
: P3 Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 21:10 UTC by renbob.news
Modified: 2017-05-20 11:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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".