File:  [ELWIX - Embedded LightWeight unIX -] / gpl / axl / src / axl_config_win32.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Feb 17 12:50:03 2012 UTC (12 years, 4 months ago) by misho
Branches: axl, MAIN
CVS tags: HEAD, AXL0_6_7
version 0.6.7

    1: /*
    2:  * Axl Library axl_config.h
    3:  * Platform dependant definitions for Win32 platform.
    4:  *
    5:  * This file is maintained manually for those people that do not
    6:  * compile axl using autoconf. It should look really similar to
    7:  * axl_config.h file created on a i386 linux platform but changing
    8:  * AXL_OS_UNIX to AXL_OS_WIN32 (at least for now).
    9:  *
   10:  *  For commercial support on build XML enabled solutions contact us:
   11:  *          
   12:  *      Postal address:
   13:  *         Advanced Software Production Line, S.L.
   14:  *         Edificio Alius A, Oficina 102,
   15:  *         C/ Antonio Suarez Nº 10,
   16:  *         Alcalá de Henares 28802 Madrid
   17:  *         Spain
   18:  *
   19:  *      Email address:
   20:  *         info@aspl.es - http://www.aspl.es/xml
   21:  *
   22:  */
   23: 
   24: #ifndef __AXL_CONFIG_H__
   25: #define __AXL_CONFIG_H__
   26: 
   27: /**
   28:  * \addtogroup axl_decl_module
   29:  * @{
   30:  */
   31: 
   32: /**
   33:  * @brief Allows to convert integer value (including constant values)
   34:  * into a pointer representation.
   35:  *
   36:  * Use the oposite function to restore the value from a pointer to a
   37:  * integer: \ref PTR_TO_INT.
   38:  *
   39:  * @param integer The integer value to cast to pointer.
   40:  *
   41:  * @return A \ref axlPointer reference.
   42:  */
   43: #define INT_TO_PTR(integer) ((axlPointer) (integer))
   44: 
   45: /**
   46:  * @brief Allows to convert a pointer reference (\ref axlPointer),
   47:  * which stores an integer that was stored using \ref INT_TO_PTR.
   48:  *
   49:  * Use the oposite function to restore the pointer value stored in the
   50:  * integer value.
   51:  *
   52:  * @param ptr The pointer to cast to a integer value.
   53:  *
   54:  * @return A int value.
   55:  */
   56: #define PTR_TO_INT(ptr) ((int) (ptr))
   57: 
   58: /**
   59:  * @brief Allows to get current platform configuration. This is used
   60:  * by Axl library but could be used by applications built on top of
   61:  * Axl to change its configuration based on the platform information.
   62:  *
   63:  * Note when this flag is enabled (set to 1), it means we are
   64:  * compiling in a windows platform (no matter if it is 64 or 32
   65:  * bits). To check for 64bit see AXL_OS_WIN64.
   66:  */
   67: #define AXL_OS_WIN32 (1)
   68: 
   69: /**  
   70:  * @brief If defined to 1, it means we are compiling in a windows
   71:  * platform running 64 bit version.
   72:  */
   73: #define AXL_OS_WIN64 (0)
   74: 
   75: /* @} */
   76: 
   77: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>