Explorar o código

fix ncurses include

ruki %!s(int64=5) %!d(string=hai) anos
pai
achega
ac5d5f33b1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/n/ncurses/xmake.lua

+ 2 - 2
packages/n/ncurses/xmake.lua

@@ -10,13 +10,13 @@ package("ncurses")
 
     add_configs("widec", { description = "Compile with wide-char/UTF-8 code.", default = true, type = "boolean"})
 
-    add_includedirs("include/ncurses", "include")
-
     on_load(function (package)
         if package:config("widec") then
             package:add("links", "ncursesw", "formw", "panelw", "menuw")
+            package:add("includedirs", "include/ncursesw", "include")
         else
             package:add("links", "ncurses", "form", "panel", "menu")
+            package:add("includedirs", "include/ncurses", "include")
         end
     end)