#ifndef LIB3DV_DETAIL_DECLSPECS_H #define LIB3DV_DETAIL_DECLSPECS_H /* lib3dv/detail/declspecs.h * * Copyright (C) 2013 VisLab * * This file is part of 3dv-client; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, see . */ #ifndef DECLSPEC_PACKED #if defined(_MSC_VER) #define DECLSPEC_PACKED(declaration) __pragma(pack(push,1)) declaration; __pragma(pack(pop)) #elif defined(__GNUC__) #define DECLSPEC_PACKED(declaration) declaration __attribute((packed)); #else #define DECLSPEC_PACKED(declaration) declaration; #endif #endif #endif