/*
 * Open Surge Engine
 * hqx.c - neat(?) wrapper for hqx
 * Copyright (C) 2012  Alexandre Martins <alemartf(at)gmail(dot)com>
 * http://opensurge2d.org
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU 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 General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <stdlib.h>

#ifdef __GNUC__
#define __D__GNUC__
#undef __GNUC__
#endif
#ifdef _WIN32
#define __D_WIN32
#undef _WIN32
#endif

/* it's ugly, I know, but I do not want to change anything in the hqx lib */
/* the macros defined in hqx/hqx.h are pretty annoying! I just want to get rid of them. */
#include "hqx/init.c"
#include "hqx/hq2x.c"
#undef PIXEL00_20
#undef PIXEL01_10
#undef PIXEL01_12
#undef PIXEL01_21
#undef PIXEL01_60
#undef PIXEL01_61
#undef PIXEL10_10
#undef PIXEL10_11
#undef PIXEL10_21
#undef PIXEL10_60
#undef PIXEL10_61
#undef PIXEL11_70
#include "hqx/hq3x.c"
#include "hqx/hq4x.c"

#ifdef __D__GNUC__
#define __GNUC__
#endif
#ifdef __D_WIN32
#define _WIN32
#endif
