Skip to content

Commit

Permalink
Switching from ifdef to if
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadb-amazon committed Feb 21, 2024
1 parent 2783761 commit c7ca69e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/controller/java/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ shared_library("jni") {
]

deps += [ "${chip_root}/src/controller:nodatamodel" ]
} else {
defines += [ "CHIP_DEVICE_CONFIG_DYNAMIC_SERVER=0" ]
}

if (matter_enable_java_compilation) {
Expand Down
4 changes: 2 additions & 2 deletions src/controller/java/CHIPDeviceController-JNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#include <system/SystemClock.h>
#include <vector>

#ifdef CHIP_DEVICE_CONFIG_DYNAMIC_SERVER
#if CHIP_DEVICE_CONFIG_DYNAMIC_SERVER
#include <app/dynamic_server/AccessControl.h>
#endif // CHIP_DEVICE_CONFIG_DYNAMIC_SERVER

Expand Down Expand Up @@ -147,7 +147,7 @@ jint JNI_OnLoad(JavaVM * jvm, void * reserved)
SuccessOrExit(err);
#endif // JAVA_MATTER_CONTROLLER_TEST

#ifdef CHIP_DEVICE_CONFIG_DYNAMIC_SERVER
#if CHIP_DEVICE_CONFIG_DYNAMIC_SERVER
chip::app::dynamic_server::InitAccessControl();
#endif // CHIP_DEVICE_CONFIG_DYNAMIC_SERVER

Expand Down

0 comments on commit c7ca69e

Please sign in to comment.