Skip to content

Commit

Permalink
Protect <string>/<vector> includes with #ifdef
Browse files Browse the repository at this point in the history
PR eclipse-openj9#20129 added two includes (for <string> and <includes>) that
are only needed for JITServer specific code. Thus the two includes
should be protected by #if defined(J9VM_OPT_JITSERVER)

Signed-off-by: Marius Pirvu <[email protected]>
  • Loading branch information
mpirvu committed Oct 28, 2024
1 parent 1320353 commit e5b01db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/compiler/control/rossa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#if defined(J9VM_OPT_JITSERVER)
#include <vector>
#include <string>
#endif /* defined(J9VM_OPT_JITSERVER) */

#ifdef WINDOWS
// Undefine the winsockapi because winsock2 defines it. Removes warnings.
Expand Down

0 comments on commit e5b01db

Please sign in to comment.