Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added header files and ifdef statements #1819

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions IBPSA/Resources/C-Sources/fileWriterFree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
*
* Michael Wetter, LBNL 2018-05-12
*/

#ifndef IBPSA_FILEWRITERFree_c
#define IBPSA_FILEWRITERFree_c

#include <stdlib.h>
#include <stdio.h>
#include "ModelicaUtilities.h"
Expand Down Expand Up @@ -62,3 +66,5 @@ void fileWriterFree(void* ptrFileWriter){

return;
}

#endif
3 changes: 3 additions & 0 deletions IBPSA/Resources/C-Sources/fileWriterStructure.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef IBPSA_FILEWRITERStructure_c
#define IBPSA_FILEWRITERStructure_c

#include <stdlib.h>
#include <string.h>

#include "ModelicaUtilities.h"

#include "fileWriterStructure.h"
Expand Down
8 changes: 8 additions & 0 deletions IBPSA/Resources/C-Sources/jsonWriterInit.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* Filip Jorissen, KU Leuven
*/

#ifndef IBPSA_JSONWRITERINIT_c
#define IBPSA_JSONWRITERINIT_c

#include <stdlib.h>
#include <string.h>

#include "fileWriterStructure.c"
#include "ModelicaUtilities.h"

Expand Down Expand Up @@ -90,3 +96,5 @@ void writeJson(void *ptrFileWriter, const double* varVals, const int numVals){
if (fclose(fOut) == EOF)
ModelicaFormatError("In writeJson.c: Returned an error when closing %s.", ID->fileWriterName);
}

#endif