Skip to content

Commit

Permalink
Fix macros
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jan 5, 2025
1 parent 1996f3a commit c65798c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ AC_DEFUN([WITH_SAVE_ENV],

dnl AC_DEFINE*() wrappers.
AC_DEFUN([PY_DEFINE], [dnl
AC_DEFINE([Py_$1], [$2], [$3])dnl
AC_DEFINE([[Py_]$1], [$2], [$3])dnl
AC_DEFINE([$1], [$2], [$3])dnl
])
AC_DEFUN([PY_DEFINE_UNQUOTED], [dnl
AC_DEFINE_UNQUOTED([Py_$1], [$2], [$3])dnl
AC_DEFINE_UNQUOTED([[Py_]$1], [$2], [$3])dnl
AC_DEFINE_UNQUOTED([$1], [$2], [$3])dnl
])

Expand All @@ -78,7 +78,7 @@ AC_DEFUN([PY_CHECK_FUNC],
AS_VAR_IF(
[py_var],
[yes],
[PY_DEFINE(py_define, [1], [Define if you have the '$1' function.])])
[PY_DEFINE([py_define], [1], [Define if you have the '$1' function.])])
AS_VAR_POPDEF([py_var])
AS_VAR_POPDEF([py_define])
])
Expand Down Expand Up @@ -6852,7 +6852,7 @@ AC_DEFUN([PY_CHECK_CURSES_FUNC],
AS_VAR_IF(
[py_var],
[yes],
[PY_DEFINE(py_define, [1], [Define if you have the '$1' function.])])
[PY_DEFINE([py_define], [1], [Define if you have the '$1' function.])])
AS_VAR_POPDEF([py_var])
AS_VAR_POPDEF([py_define])
])
Expand Down

0 comments on commit c65798c

Please sign in to comment.