configury: improve dlsym underscore detection.
[m4.git] / modules / traditional.c
blob845bd6ee504ce98ccf97022ca8a8f96abb460a05
1 /* GNU m4 -- A simple macro processor
2 Copyright (C) 2000, 2006-2008, 2010, 2013-2014 Free Software
3 Foundation, Inc.
5 This file is part of GNU M4.
7 GNU M4 is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 GNU M4 is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include <config.h>
23 /* Build using only the exported interfaces, unless NDEBUG is set, in
24 which case use private symbols to speed things up as much as possible. */
25 #ifndef NDEBUG
26 # include <m4/m4module.h>
27 #else
28 # include "m4private.h"
29 #endif
31 /* A table for mapping m4 symbol names to simple expansion text. */
32 static const m4_macro m4_macro_table[] =
34 /* name text min max */
35 #if UNIX
36 { "unix", "", 0, 0 },
37 #elif W32_NATIVE
38 { "windows", "", 0, 0 },
39 #elif OS2
40 { "os2", "", 0, 0 },
41 #else
42 # warning Platform macro not provided
43 #endif
44 { "__traditional__", "", 0, 0 },
45 { NULL, NULL, 0, 0 },
48 void
49 include_traditional (m4 *context, m4_module *module, m4_obstack *obs)
51 m4_install_macros (context, module, m4_macro_table);