env = Environment()
settings.SetupEnvironment( env, config['name'] )
env.Prepend( CPPPATH = [ '#tools/quake3/common' ] )
-env.Append( LIBS = [ 'pthread', 'png', 'jpeg', 'mhash' ] )
+env.Append( LIBS = [ 'pthread', 'png', 'jpeg' ] )
proj = utils.vcproj( os.path.join( GetLaunchDir(), 'tools/quake3/q3map2/q3map2.vcproj' ) )
objects = lib_objects
objects += [ os.path.join( 'tools/quake3/q3map2', i ) for i in proj.getSourceFiles() ]
build_dir = os.path.join( 'build', config_name, 'q3map2' )
BuildDir( build_dir, '.', duplicate = 0 )
lib_objects = []
- for project in [ 'libs/cmdlib/cmdlib.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj', 'libs/picomodel/picomodel.vcproj', 'libs/md5lib/md5lib.vcproj' ]:
+ for project in [ 'libs/cmdlib/cmdlib.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj', 'libs/picomodel/picomodel.vcproj', 'libs/md5lib/md5lib_VC9.vcproj' ]:
Export( 'project' )
lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
Export( 'lib_objects' )
#ifndef MD4_H
#define MD4_H
-struct hash_method {\r
- const char *name;\r
- /* Number of bytes that must be allocated for context */\r
- unsigned int context_size;\r
- /* Number of bytes that must be allocated for result()'s digest */\r
- unsigned int digest_size;\r
-\r
- void (*init)(void *context);\r
- void (*loop)(void *context, const void *data, size_t size);\r
- void (*result)(void *context, unsigned char *digest_r);\r
-};\r
-\r
-const struct hash_method *hash_method_lookup(const char *name);\r
-\r
-/* NULL-terminated list of all hash methods */\r
-extern const struct hash_method *hash_methods[];
+#ifdef _WIN32
+ #include "stdint.msvc.h"
+#else
+ #include <stdint.h>
+#endif
-typedef unsigned int uint_fast32_t;
+struct hash_method {
+ const char *name;
+ /* Number of bytes that must be allocated for context */
+ unsigned int context_size;
+ /* Number of bytes that must be allocated for result()'s digest */
+ unsigned int digest_size;
+
+ void (*init)(void *context);
+ void (*loop)(void *context, const void *data, size_t size);
+ void (*result)(void *context, unsigned char *digest_r);
+};
+
+const struct hash_method *hash_method_lookup(const char *name);
+
+/* NULL-terminated list of all hash methods */
+extern const struct hash_method *hash_methods[];
#define MD4_RESULTLEN (128/8)