~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenlib/BLI_winstuff.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * Compatibility-like things for windows.
3
3
 *
4
 
 * $Id: BLI_winstuff.h,v 1.7 2003/05/24 20:04:24 hos Exp $ 
 
4
 * $Id: BLI_winstuff.h,v 1.9 2005/04/02 15:36:56 zuster Exp $ 
5
5
 *
6
6
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7
7
 *
34
34
#pragma warning(once: 4761 4305 4244 4018)
35
35
 
36
36
#define WIN32_LEAN_AND_MEAN
37
 
#include <windows.h>
 
37
 
 
38
#ifndef WIN32_SKIP_HKEY_PROTECTION
 
39
#define HKEY WIN32_HKEY                         // prevent competing definitions
 
40
#include <windows.h>
 
41
#undef HKEY
 
42
#else
 
43
#include <windows.h>
 
44
#endif
38
45
 
39
46
#undef near
40
47
#undef far
55
62
#ifndef __WINSTUFF_H__
56
63
#define __WINSTUFF_H__
57
64
 
 
65
        // These definitions are also in arithb for simplicity
 
66
 
 
67
#ifndef M_PI
58
68
#define M_PI            3.14159265358979323846
 
69
#endif
 
70
#ifndef M_PI_2
59
71
#define M_PI_2          1.57079632679489661923
 
72
#endif
 
73
#ifndef M_SQRT2
60
74
#define M_SQRT2         1.41421356237309504880
 
75
#endif
 
76
#ifndef M_SQRT1_2
61
77
#define M_SQRT1_2       0.70710678118654752440
 
78
#endif
62
79
 
63
80
#define MAXPATHLEN MAX_PATH
64
81
 
93
110
} DIR;
94
111
 
95
112
void RegisterBlendExtension(char * str);
96
 
#ifndef FREE_WINDOWS
97
 
int strcasecmp (char *s1, char *s2);
98
 
int strncasecmp (char *s1, char *s2, int n);
99
 
#endif
100
113
DIR *opendir (const char *path);
101
114
struct dirent *readdir(DIR *dp);
102
115
int closedir (DIR *dp);