Home | History | Annotate | Download | only in examples
      1 /**
      2  * \file common.h
      3  * These headers are used by absolutely all sample programs.
      4  * Special quirks that apply to all samples go here.
      5  *
      6  * Copyright (C) 2005-2007 Linus Walleij <triad (at) df.lth.se>
      7  *
      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.
     22  */
     23 #include <libmtp.h>
     24 #ifndef _MSC_VER
     25 #include <config.h>
     26 #ifdef HAVE_GETOPT_H
     27 #include <getopt.h>
     28 #else
     29 #include <unistd.h>
     30 #endif
     31 #else
     32 // Only if using MSVC...
     33 #include "..\windows\getopt.h"
     34 #endif
     35