summaryrefslogtreecommitdiff
path: root/cpp/src/slice2freeze/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-rw-r--r--cpp/src/slice2freeze/Main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp
index 34e544c0139..1b9bff67efb 100644
--- a/cpp/src/slice2freeze/Main.cpp
+++ b/cpp/src/slice2freeze/Main.cpp
@@ -1449,11 +1449,7 @@ gen(const string& name, const UnitPtr& u, const vector<string>& includePaths, co
}
}
- string s = fileH;
- transform(s.begin(), s.end(), s.begin(), ToIfdef());
- H << "\n#ifndef __" << s << "__";
- H << "\n#define __" << s << "__";
- H << '\n';
+ H << "#pragma once\n";
if(dicts.size() > 0)
{
@@ -1502,7 +1498,7 @@ gen(const string& name, const UnitPtr& u, const vector<string>& includePaths, co
}
}
- H << "\n\n#endif\n";
+ H << "\n\n";
CPP << '\n';
H.close();