fix Linux compile from mhash stuff

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@339 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
TTimo 2010-11-26 06:46:05 +00:00
parent e393e112f4
commit 0152053e52
4 changed files with 23 additions and 23 deletions

View file

@ -10,7 +10,7 @@ Import( [ 'utils', 'config', 'settings', 'lib_objects' ] )
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() ]

View file

@ -158,7 +158,7 @@ class Config:
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' )

View file

@ -9,24 +9,28 @@
#ifndef MD4_H
#define MD4_H
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[];
#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)

View file

@ -18,10 +18,6 @@
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include "../stdint.msvc.h"
#endif
#include "md4lib.h"
/*