Blame pcrecpp_internal.h

Packit 78a954
/*************************************************
Packit 78a954
*       Perl-Compatible Regular Expressions      *
Packit 78a954
*************************************************/
Packit 78a954
Packit 78a954
/*
Packit 78a954
Copyright (c) 2005, Google Inc.
Packit 78a954
All rights reserved.
Packit 78a954
Packit 78a954
-----------------------------------------------------------------------------
Packit 78a954
Redistribution and use in source and binary forms, with or without
Packit 78a954
modification, are permitted provided that the following conditions are met:
Packit 78a954
Packit 78a954
    * Redistributions of source code must retain the above copyright notice,
Packit 78a954
      this list of conditions and the following disclaimer.
Packit 78a954
Packit 78a954
    * Redistributions in binary form must reproduce the above copyright
Packit 78a954
      notice, this list of conditions and the following disclaimer in the
Packit 78a954
      documentation and/or other materials provided with the distribution.
Packit 78a954
Packit 78a954
    * Neither the name of the University of Cambridge nor the names of its
Packit 78a954
      contributors may be used to endorse or promote products derived from
Packit 78a954
      this software without specific prior written permission.
Packit 78a954
Packit 78a954
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Packit 78a954
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit 78a954
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit 78a954
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
Packit 78a954
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
Packit 78a954
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
Packit 78a954
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Packit 78a954
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
Packit 78a954
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
Packit 78a954
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Packit 78a954
POSSIBILITY OF SUCH DAMAGE.
Packit 78a954
-----------------------------------------------------------------------------
Packit 78a954
*/
Packit 78a954
Packit 78a954
Packit 78a954
#ifndef PCRECPP_INTERNAL_H
Packit 78a954
#define PCRECPP_INTERNAL_H
Packit 78a954
Packit 78a954
/* When compiling a DLL for Windows, the exported symbols have to be declared
Packit 78a954
using some MS magic. I found some useful information on this web page:
Packit 78a954
http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the
Packit 78a954
information there, using __declspec(dllexport) without "extern" we have a
Packit 78a954
definition; with "extern" we have a declaration. The settings here override the
Packit 78a954
setting in pcre.h. We use:
Packit 78a954
Packit 78a954
  PCRECPP_EXP_DECL       for declarations
Packit 78a954
  PCRECPP_EXP_DEFN       for definitions of exported functions
Packit 78a954
Packit 78a954
*/
Packit 78a954
Packit 78a954
#ifndef PCRECPP_EXP_DECL
Packit 78a954
#  ifdef _WIN32
Packit 78a954
#    ifndef PCRE_STATIC
Packit 78a954
#      define PCRECPP_EXP_DECL       extern __declspec(dllexport)
Packit 78a954
#      define PCRECPP_EXP_DEFN       __declspec(dllexport)
Packit 78a954
#    else
Packit 78a954
#      define PCRECPP_EXP_DECL       extern
Packit 78a954
#      define PCRECPP_EXP_DEFN
Packit 78a954
#    endif
Packit 78a954
#  else
Packit 78a954
#    define PCRECPP_EXP_DECL         extern
Packit 78a954
#    define PCRECPP_EXP_DEFN
Packit 78a954
#  endif
Packit 78a954
#endif
Packit 78a954
Packit 78a954
#endif  /* PCRECPP_INTERNAL_H */
Packit 78a954
Packit 78a954
/* End of pcrecpp_internal.h */