1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

Cleanup config header for libcmd

- Since it's now private, give it a rename. Note that I want to switch the
  word order on the public ones too.

- Since it is only needed by two files, just include there rather than
  the nasty blanket-forced thing.

(cherry picked from commit 326548bae5)
This commit is contained in:
John Ericson 2025-03-28 13:01:20 -04:00
parent d6359ebac5
commit c0b219cf46
3 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,8 @@
#include "finally.hh"
#include "terminal.hh"
#include "cmd-config-private.hh"
#if HAVE_LOWDOWN
# include <sys/queue.h>
# include <lowdown.h>

View file

@ -55,7 +55,7 @@ endif
config_h = configure_file(
configuration : configdata,
output : 'config-cmd.hh',
output : 'cmd-config-private.hh',
)
add_project_arguments(
@ -64,7 +64,6 @@ add_project_arguments(
'-include', 'config-util.hh',
'-include', 'config-store.hh',
'-include', 'config-expr.hh',
'-include', 'config-cmd.hh',
language : 'cpp',
)

View file

@ -1,3 +1,5 @@
#include "cmd-config-private.hh"
#include <cstdio>
#ifdef USE_READLINE