diff --git a/library/build.gradle.kts b/library/build.gradle.kts index f2467cd..fad98a8 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -110,9 +110,12 @@ kotlin { overrides.overrideAnonymousStructIndex(24, 10) overrides.overrideAnonymousStructIndex(25, 11) - // if (OperatingSystem.current().isWindows()) { - // include_dirs += File("C:\\cygwin\\usr\\include").listFiles().orEmpty().map { it.absolutePath } - // } + if (OperatingSystem.current().isWindows()) { + include_dirs += File("C:\\cygwin\\lib").listFiles().orEmpty().mapNotNull { file -> + if (file.resolve("include").isDirectory) file.absolutePath + else null + } + } } } }