Blame intl/intl-exports.c

Packit Service a721b1
/* List of exported symbols of libintl on Cygwin.
Packit Service a721b1
   Copyright (C) 2006 Free Software Foundation, Inc.
Packit Service a721b1
   Written by Bruno Haible <bruno@clisp.org>, 2006.
Packit Service a721b1
Packit Service a721b1
   This program is free software; you can redistribute it and/or modify it
Packit Service a721b1
   under the terms of the GNU Library General Public License as published
Packit Service a721b1
   by the Free Software Foundation; either version 2, or (at your option)
Packit Service a721b1
   any later version.
Packit Service a721b1
Packit Service a721b1
   This program is distributed in the hope that it will be useful,
Packit Service a721b1
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service a721b1
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service a721b1
   Library General Public License for more details.
Packit Service a721b1
Packit Service a721b1
   You should have received a copy of the GNU Library General Public
Packit Service a721b1
   License along with this program; if not, write to the Free Software
Packit Service a721b1
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
Packit Service a721b1
   USA.  */
Packit Service a721b1
Packit Service a721b1
 /* IMP(x) is a symbol that contains the address of x.  */
Packit Service a721b1
#define IMP(x) _imp__##x
Packit Service a721b1
Packit Service a721b1
 /* Ensure that the variable x is exported from the library, and that a
Packit Service a721b1
    pseudo-variable IMP(x) is available.  */
Packit Service a721b1
#define VARIABLE(x) \
Packit Service a721b1
 /* Export x without redefining x.  This code was found by compiling a	\
Packit Service a721b1
    snippet:								\
Packit Service a721b1
      extern __declspec(dllexport) int x; int x = 42;  */		\
Packit Service a721b1
 asm (".section .drectve\n");						\
Packit Service a721b1
 asm (".ascii \" -export:" #x ",data\"\n");				\
Packit Service a721b1
 asm (".data\n");							\
Packit Service a721b1
 /* Allocate a pseudo-variable IMP(x).  */				\
Packit Service a721b1
 extern int x;								\
Packit Service a721b1
 void * IMP(x) = &x;
Packit Service a721b1
Packit Service a721b1
VARIABLE(libintl_version)