unrealircd

- supernets unrealircd source & configuration
git clone git://git.acid.vegas/unrealircd.git
Log | Files | Refs | Archive | README | LICENSE

types.h (1333B)

      1 /*
      2  *   Unreal Internet Relay Chat Daemon, include/types.h
      3  *   (C) 2003 The UnrealIRCd Team
      4  *
      5  *   This program is free software; you can redistribute it and/or modify
      6  *   it under the terms of the GNU General Public License as published by
      7  *   the Free Software Foundation; either version 1, or (at your option)
      8  *   any later version.
      9  *
     10  *   This program is distributed in the hope that it will be useful,
     11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13  *   GNU General Public License for more details.
     14  *
     15  *   You should have received a copy of the GNU General Public License
     16  *   along with this program; if not, write to the Free Software
     17  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18  */
     19 
     20 #ifndef TYPES_H
     21 #define TYPES_H
     22 
     23 typedef void                    (*vFP)();       /* Void function pointer */
     24 typedef int                     (*iFP)();       /* Integer function pointer */
     25 typedef char                    (*cFP)();       /* char * function pointer */
     26 
     27 #ifndef MODVAR
     28  #if defined(MODULE_COMPILE) && defined(_WIN32)
     29   #define MODVAR __declspec(dllimport)
     30  #else
     31   #define MODVAR
     32  #endif
     33 #endif
     34 
     35 #ifndef MODFUNC
     36  #ifdef _WIN32
     37   #define MODFUNC __declspec(dllexport)
     38  #else
     39   #define MODFUNC
     40  #endif
     41 #endif
     42 
     43 #endif