mirror of
https://github.com/labwc/labwc.git
synced 2026-02-12 04:27:57 -05:00
Add translate.h for HAVE_NLS includes/defines
...to shrink labwc.h footprint
This commit is contained in:
parent
1692c47fa0
commit
26bd02d457
7 changed files with 19 additions and 8 deletions
|
|
@ -7,13 +7,6 @@
|
|||
#include "common/set.h"
|
||||
#include "input/cursor.h"
|
||||
#include "overlay.h"
|
||||
#if HAVE_NLS
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
#define _ gettext
|
||||
#else
|
||||
#define _(s) (s)
|
||||
#endif
|
||||
|
||||
#define XCURSOR_DEFAULT "left_ptr"
|
||||
#define XCURSOR_SIZE 24
|
||||
|
|
|
|||
14
include/translate.h
Normal file
14
include/translate.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_TRANSLATE_H
|
||||
#define LABWC_TRANSLATE_H
|
||||
#include "config.h"
|
||||
|
||||
#if HAVE_NLS
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
#define _ gettext
|
||||
#else
|
||||
#define _(s) (s)
|
||||
#endif
|
||||
|
||||
#endif /* LABWC_TRANSLATE_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue