Compatibility.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2006 by Basler Vision Technologies
00003 //  Section: Vision Components
00004 //  Project: GenApi
00005 //  Author:  Margret Albrecht
00006 //  $Header$
00007 //
00008 //  License: This file is published under the license of the EMVA GenICam  Standard Group.
00009 //  A text file describing the legal terms is included in  your installation as 'GenICam_license.pdf'.
00010 //  If for some reason you are missing  this file please contact the EMVA or visit the website
00011 //  (http://www.genicam.org) for a full copy.
00012 //
00013 //  THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
00014 //  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00015 //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00016 //  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD  GROUP
00017 //  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL,
00018 //  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  LIMITED TO,
00019 //  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS;
00020 //  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY,
00021 //  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)
00022 //  ARISING IN ANY WAY OUT OF THE USE  OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00023 //  POSSIBILITY OF SUCH DAMAGE.
00024 //-----------------------------------------------------------------------------
00031 #ifndef GENAPI_COMPATIBILITY_H
00032 #define GENAPI_COMPATIBILITY_H
00033 
00034 #if defined (_MSC_VER) && defined (_WIN32)
00035 
00036 #if ! defined(NOMINMAX)
00037 #  define NOMINMAX
00038 #endif
00039 
00040 #elif defined (__GNUC__) && (defined (__linux__) || defined (__APPLE__) || defined(VXWORKS))
00041 
00042 #  include <stdint.h>
00043 /*
00044  * Watch out!
00045  * In order not to break existing code, we have to duplicate the
00046  * broken MS Windows GUID handling. Never mix with code using the
00047  * rfc4122-compliant uuid framework implemented by libuuid!
00048  */
00049 
00050 typedef struct _GUID {
00051     uint32_t Data1;
00052     uint16_t Data2;
00053     uint16_t Data3;
00054     uint8_t  Data4[ 8 ];
00055 } __attribute__ ((packed)) GUID;
00056 #else
00057 #   error Unsupported platform
00058 #endif
00059 
00060 
00061 
00062 #if defined (__x86_64) // GNUC && 64 Bit
00063 #  define FMT_I64 "l"
00064 #else // all 32 bit and all Windows
00065 #  define FMT_I64 "ll"
00066 #endif
00067 
00068 #endif // ifndef GENAPI_COMPATIBILITY_H


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02