summaryrefslogtreecommitdiff
path: root/include/uno
diff options
context:
space:
mode:
Diffstat (limited to 'include/uno')
-rw-r--r--include/uno/current_context.hxx1
-rw-r--r--include/uno/environment.hxx2
-rw-r--r--include/uno/lbnames.h9
-rw-r--r--include/uno/mapping.hxx1
4 files changed, 8 insertions, 5 deletions
diff --git a/include/uno/current_context.hxx b/include/uno/current_context.hxx
index 3019006e4e33..e75f41fb3fe6 100644
--- a/include/uno/current_context.hxx
+++ b/include/uno/current_context.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_UNO_CURRENT_CONTEXT_HXX
#include <uno/current_context.h>
+#include <uno/lbnames.h>
#include <com/sun/star/uno/XCurrentContext.hpp>
diff --git a/include/uno/environment.hxx b/include/uno/environment.hxx
index cd5db7a672b4..0f4d15bdf66d 100644
--- a/include/uno/environment.hxx
+++ b/include/uno/environment.hxx
@@ -55,7 +55,7 @@ public:
respectively to current C++ Environment.
@since UDK 3.2.7
*/
- inline static Environment getCurrent(rtl::OUString const & typeName = rtl::OUString(CPPU_STRINGIFY(CPPU_ENV))) SAL_THROW(());
+ inline static Environment getCurrent(rtl::OUString const & typeName = rtl::OUString(CPPU_CURRENT_LANGUAGE_BINDING_NAME)) SAL_THROW(());
/// @cond INTERNAL
// these are here to force memory de/allocation to sal lib.
diff --git a/include/uno/lbnames.h b/include/uno/lbnames.h
index bc2afa6cccbd..83a4608925b1 100644
--- a/include/uno/lbnames.h
+++ b/include/uno/lbnames.h
@@ -21,15 +21,16 @@
/* I assume "LB" means "Language Binding" */
+#include <sal/config.h>
+
+#include <sal/macros.h>
+
#ifdef __cplusplus
#ifdef CPPU_ENV
-#define CPPU_STRINGIFY_EX( x ) #x
-#define CPPU_STRINGIFY( x ) CPPU_STRINGIFY_EX( x )
-
/** Name for C++ compiler/ platform, e.g. "gcc3", "msci" */
-#define CPPU_CURRENT_LANGUAGE_BINDING_NAME CPPU_STRINGIFY( CPPU_ENV )
+#define CPPU_CURRENT_LANGUAGE_BINDING_NAME SAL_STRINGIFY( CPPU_ENV )
#else
diff --git a/include/uno/mapping.hxx b/include/uno/mapping.hxx
index 5f96972433b7..f8828170b955 100644
--- a/include/uno/mapping.hxx
+++ b/include/uno/mapping.hxx
@@ -27,6 +27,7 @@
#include <com/sun/star/uno/Reference.hxx>
#include <cppu/unotype.hxx>
#include <uno/environment.hxx>
+#include <uno/lbnames.h>
typedef struct _typelib_TypeDescription typelib_TypeDescription;
typedef struct _typelib_InterfaceTypeDescription typelib_InterfaceTypeDescription;