syncqt: Create deprecated headers that work with MSVC
MSVC doesn't understand the #warning directive; use #pragma message instead. Change-Id: I42fe43269f5a84559a983932737c9eeb6b74b1ff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
9b17557f3b
commit
9296bf95fa
@ -1146,7 +1146,11 @@ foreach my $lib (@modules_to_sync) {
|
||||
my $warning = "Header <$lib/";
|
||||
$warning .= "private/" unless ($public_header);
|
||||
$warning .= "$header> is deprecated. Please include <$include> instead.";
|
||||
print HEADER "#warning $warning\n";
|
||||
print HEADER "#if defined(__GNUC__)\n";
|
||||
print HEADER "# warning $warning\n";
|
||||
print HEADER "#elif defined(_MSC_VER)\n";
|
||||
print HEADER "# pragma message (\"$warning\")\n";
|
||||
print HEADER "#endif\n";
|
||||
print HEADER "#include <$include>\n";
|
||||
if ($public_header) {
|
||||
print HEADER "#if 0\n";
|
||||
|
Loading…
Reference in New Issue
Block a user