Commit e9ea34ab6072342205be0b874e7d4261a8c6cb54

Authored by Perry Werneck
1 parent 08c0934e

Fixing actions.h.

Showing 1 changed file with 9 additions and 4 deletions   Show diff stats
src/lib3270/mkactions/mkactions.c
... ... @@ -142,8 +142,10 @@ int main(int argc, char *argv[]) {
142 142 " */\n\n"
143 143 "#ifndef LIB3270_ACTIONS_H_INCLUDED\n"
144 144 "\n"
145   - "\n #define LIB3270_ACTIONS_H_INCLUDED 1\n"
146   - "\n"
  145 + "\n #define LIB3270_ACTIONS_H_INCLUDED 1\n\n"
  146 + "#ifdef __cplusplus\n"
  147 + " extern \"C\" {\n"
  148 + "#endif\n\n"
147 149 );
148 150  
149 151 if(format == FORMAT_HEADER)
... ... @@ -197,8 +199,11 @@ int main(int argc, char *argv[]) {
197 199 " * @param name\tName of the action to call.\n"
198 200 " *\n"
199 201 " */\n"
200   - " LIB3270_EXPORT int lib3270_action(H3270 *hSession, const char *name);\n"
201   - "\n\n#endif // LIB3270_ACTIONS_H_INCLUDED"
  202 + " LIB3270_EXPORT int lib3270_action(H3270 *hSession, const char *name);\n\n"
  203 + "#ifdef __cplusplus\n"
  204 + " }\n"
  205 + "#endif\n"
  206 + "\n#endif // LIB3270_ACTIONS_H_INCLUDED"
202 207 );
203 208 }
204 209  
... ...