~usb-creator-hackers/usb-creator/trunk

« back to all changes in this revision

Viewing changes to tools/pylauncher/unpack.h

  • Committer: Evan Dandrea
  • Date: 2009-07-23 13:58:53 UTC
  • mto: This revision was merged to the branch mainline in revision 133.
  • Revision ID: evan.dandrea@canonical.com-20090723135853-zjeg9r22xyuk1kz8
Support for building a Windows executable.  Run make build_windows or make test_windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2007, 2008 Agostino Russo
 
3
 *
 
4
 *  Written by Agostino Russo <agostino.russo@gmail.com>
 
5
 *  Heavily inspired by exemaker from Fredrik Lundh
 
6
 *
 
7
 *  pylauncher is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as
 
9
 *  published by the Free Software Foundation; either version 2 of
 
10
 *  the License, or (at your option) any later version.
 
11
 *
 
12
 *  pylauncher is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 *
 
20
 * DESCRIPTION:
 
21
 * Unpacks an lzma archive
 
22
 */
 
23
 
 
24
#include <string.h>
 
25
#include <stdio.h>
 
26
#include <stdlib.h>
 
27
#include <sys/stat.h>
 
28
#include <io.h>
 
29
 
 
30
#include "../7z/C/Archive/7z/7zIn.h"
 
31
#include "../7z/C/Archive/7z/7zExtract.h"
 
32
#include "../7z/C/7zCrc.h"
 
33
 
 
34
#ifdef USE_WINDOWS_FUNCTIONS
 
35
#include <windows.h>
 
36
#endif
 
37
 
 
38
int unpack(char *archive);