blob: b39c44a1d595f7d73d42daf9f21845d6e6405c2f [file] [log] [blame]
Linus Walleij71c79292011-03-05 22:08:07 +01001/**
Linus Walleijeb8c6fe2006-02-03 09:46:22 +00002 * \file common.h
3 * These headers are used by absolutely all sample programs.
4 * Special quirks that apply to all samples go here.
Linus Walleij543badf2007-02-05 19:07:38 +00005 *
Linus Walleij71c79292011-03-05 22:08:07 +01006 * Copyright (C) 2005-2011 Linus Walleij <triad@df.lth.se>
Linus Walleij543badf2007-02-05 19:07:38 +00007 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
Linus Walleijeb8c6fe2006-02-03 09:46:22 +000022 */
23#include <libmtp.h>
24#ifndef _MSC_VER
Linus Walleij2242b022009-01-02 01:44:00 +000025#include <config.h>
Linus Walleijeb8c6fe2006-02-03 09:46:22 +000026#ifdef HAVE_GETOPT_H
27#include <getopt.h>
28#else
29#include <unistd.h>
30#endif
31#else
Linus Walleij934cd7f2006-12-06 20:21:43 +000032// Only if using MSVC...
Linus Walleijeb8c6fe2006-02-03 09:46:22 +000033#include "..\windows\getopt.h"
34#endif