Skip to content

Commit a34e559

Browse files
committed
Fix compilation with CORBA disabled
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16732 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 13c47a5 commit a34e559

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Compiler/runtime/corbaimpl_stub.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ static void errmsg() {
1111
fprintf(stderr, "CORBA disabled. Configure with --with-omniORB (or --with-MICO) and recompile to enable.");
1212
}
1313

14+
RML_BEGIN_LABEL(Corba__setObjectReferenceFilePath)
15+
{
16+
errmsg();
17+
RML_TAILCALLK(rmlFC);
18+
}
19+
RML_END_LABEL
20+
1421
RML_BEGIN_LABEL(Corba__haveCorba)
1522
{
1623
rmlA0 = mk_icon(0);

Compiler/runtime/corbaimpl_stub_omc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ extern int Corba_haveCorba()
4040
return 0;
4141
}
4242

43+
extern void Corba_setObjectReferenceFilePath(const char* path)
44+
{
45+
errmsg();
46+
MMC_THROW();
47+
}
48+
4349
extern void Corba_setSessionName(const char* _inSessionName)
4450
{
4551
errmsg();

0 commit comments

Comments
 (0)