diff options
authorThiago Macieira <>2016-09-08 13:54:44 -0700
committerThiago Macieira <>2016-10-13 08:29:02 +0000
commitb9a32351c8582ede87b6c63967f5c832c0622645 (patch)
parent4e13abb9ebea4fda4af47124983b8600b5bf6a76 (diff) namespaces can be exported too
You can place the export macros in the namespace declarations on ELF systems and that will apply to all declarations inside that scope. If a namespace is exported like that, then we should mark it for versioning too. Note that the exporting doesn't happen for declarations in other scopes of the same namespace, even though the script will mark everything in that namespace. This should not be a problem. Task-number: QTBUG-55897 Change-Id: I371f5b01e24a4d56b304fffd147274778b980ad2 Reviewed-by: Dmitry Shachnev <> Reviewed-by: Oswald Buddenhagen <> Reviewed-by: Frederik Gladhorn <>
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/data/unix/ b/mkspecs/features/data/unix/
index fb4357d0d4..b74b8b6a58 100644
--- a/mkspecs/features/data/unix/
+++ b/mkspecs/features/data/unix/
@@ -55,7 +55,7 @@ while (<STDIN>) {
my $comment = " /* $1 */";
while (my $line = <HDR>) {
# Match a struct or class declaration, but not a forward declaration
- $line =~ /^(?:struct|class) (?:Q_.*_EXPORT)? (\w+)(?!;)/ or next;
+ $line =~ /^(?:struct|class|namespace) (?:Q_.*_EXPORT)? (\w+)(?!;)/ or next;
print $comment if $comment;
printf " *%d%s*;\n", length $1, $1;
$comment = 0;