~ubuntu-branches/ubuntu/lucid/nsis/lucid

« back to all changes in this revision

Viewing changes to Contrib/VPatch/Source/GenPat/GlobalTypes.h

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2008-09-01 07:20:44 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080901072044-mjev9xfej6i2d63t
Tags: 2.37-3
Add nsDialogs stack corruption fix from nsis 2.38

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//---------------------------------------------------------------------------
2
 
// GlobalTypes.h
3
 
//---------------------------------------------------------------------------
4
 
//                           -=* VPatch *=-
5
 
//---------------------------------------------------------------------------
6
 
// Copyright (C) 2001-2005 Koen van de Sande / Van de Sande Productions
7
 
//---------------------------------------------------------------------------
8
 
// Website: http://www.tibed.net/vpatch
9
 
//
10
 
// This software is provided 'as-is', without any express or implied
11
 
// warranty.  In no event will the authors be held liable for any damages
12
 
// arising from the use of this software.
13
 
//
14
 
// Permission is granted to anyone to use this software for any purpose,
15
 
// including commercial applications, and to alter it and redistribute it
16
 
// freely, subject to the following restrictions:
17
 
//
18
 
// 1. The origin of this software must not be misrepresented; you must not
19
 
//    claim that you wrote the original software. If you use this software
20
 
//    in a product, an acknowledgment in the product documentation would be
21
 
//    appreciated but is not required.
22
 
// 2. Altered source versions must be plainly marked as such, and must not be
23
 
//    misrepresented as being the original software.
24
 
// 3. This notice may not be removed or altered from any source distribution.
25
 
 
26
 
#if !defined(GlobalTypes_H)
27
 
  #define GlobalTypes_H
28
 
 
29
 
  #ifndef _MSC_VER
30
 
    #include <stdint.h>
31
 
  #endif
32
 
  #include <iostream>
33
 
  #include <fstream>
34
 
  #include <ios>
35
 
  #include <string>
36
 
 
37
 
  using namespace std;
38
 
 
39
 
  #ifdef _MSC_VER
40
 
    typedef unsigned char uint8_t;
41
 
    typedef unsigned __int32 uint32_t;
42
 
    typedef unsigned __int64 uint64_t;
43
 
    #define CHECKSUM_BLOCK unsigned __int64
44
 
    #define __WIN32__
45
 
  #else
46
 
    #define CHECKSUM_BLOCK unsigned long long
47
 
  #endif
48
 
 
49
 
  typedef uint32_t TFileOffset;
50
 
  typedef ifstream bifstream;
51
 
  typedef istream bistream;
52
 
  typedef ofstream bofstream;
53
 
  typedef ostream bostream;
54
 
#endif // GlobalTypes_H
 
1
//---------------------------------------------------------------------------
 
2
// GlobalTypes.h
 
3
//---------------------------------------------------------------------------
 
4
//                           -=* VPatch *=-
 
5
//---------------------------------------------------------------------------
 
6
// Copyright (C) 2001-2005 Koen van de Sande / Van de Sande Productions
 
7
//---------------------------------------------------------------------------
 
8
// Website: http://www.tibed.net/vpatch
 
9
//
 
10
// This software is provided 'as-is', without any express or implied
 
11
// warranty.  In no event will the authors be held liable for any damages
 
12
// arising from the use of this software.
 
13
//
 
14
// Permission is granted to anyone to use this software for any purpose,
 
15
// including commercial applications, and to alter it and redistribute it
 
16
// freely, subject to the following restrictions:
 
17
//
 
18
// 1. The origin of this software must not be misrepresented; you must not
 
19
//    claim that you wrote the original software. If you use this software
 
20
//    in a product, an acknowledgment in the product documentation would be
 
21
//    appreciated but is not required.
 
22
// 2. Altered source versions must be plainly marked as such, and must not be
 
23
//    misrepresented as being the original software.
 
24
// 3. This notice may not be removed or altered from any source distribution.
 
25
 
 
26
#if !defined(GlobalTypes_H)
 
27
  #define GlobalTypes_H
 
28
 
 
29
  #ifndef _MSC_VER
 
30
    #include <stdint.h>
 
31
  #endif
 
32
  #include <iostream>
 
33
  #include <fstream>
 
34
  #include <ios>
 
35
  #include <string>
 
36
 
 
37
  using namespace std;
 
38
 
 
39
  #ifdef _MSC_VER
 
40
    typedef unsigned char uint8_t;
 
41
    typedef unsigned __int32 uint32_t;
 
42
    typedef unsigned __int64 uint64_t;
 
43
    #define CHECKSUM_BLOCK unsigned __int64
 
44
    #define __WIN32__
 
45
  #else
 
46
    #define CHECKSUM_BLOCK unsigned long long
 
47
  #endif
 
48
 
 
49
  typedef uint32_t TFileOffset;
 
50
  typedef ifstream bifstream;
 
51
  typedef istream bistream;
 
52
  typedef ofstream bofstream;
 
53
  typedef ostream bostream;
 
54
#endif // GlobalTypes_H