- removed a few __cdecl's from the source.

This commit is contained in:
Christoph Oelckers 2016-04-11 12:46:48 +02:00
parent db86385cf6
commit 77bfffaee0
2 changed files with 4 additions and 8 deletions

View file

@ -542,7 +542,7 @@ static DWORD WINAPI WriteMiniDumpInAnotherThread (LPVOID lpParam)
// //
//========================================================================== //==========================================================================
void __cdecl Writef (HANDLE file, const char *format, ...) void Writef (HANDLE file, const char *format, ...)
{ {
char buffer[1024]; char buffer[1024];
va_list args; va_list args;

View file

@ -56,10 +56,6 @@
// MACROS ------------------------------------------------------------------ // MACROS ------------------------------------------------------------------
#ifndef _WIN32
#define __cdecl
#endif
#ifdef __GNUC__ #ifdef __GNUC__
// With versions of GCC newer than 4.2, it appears it was determined that the // With versions of GCC newer than 4.2, it appears it was determined that the
// cost of an unaligned pointer on PPC was high enough to add padding to the // cost of an unaligned pointer on PPC was high enough to add padding to the
@ -212,7 +208,7 @@ dir_tree_t *add_dir(const char *dirpath);
#endif #endif
dir_tree_t *add_dirs(char **argv); dir_tree_t *add_dirs(char **argv);
int count_files(dir_tree_t *trees); int count_files(dir_tree_t *trees);
int __cdecl sort_cmp(const void *a, const void *b); int sort_cmp(const void *a, const void *b);
file_sorted_t *sort_files(dir_tree_t *trees, int num_files); file_sorted_t *sort_files(dir_tree_t *trees, int num_files);
void write_zip(const char *zipname, dir_tree_t *trees, int update); void write_zip(const char *zipname, dir_tree_t *trees, int update);
int append_to_zip(FILE *zip_file, file_sorted_t *file, FILE *ozip, BYTE *odir); int append_to_zip(FILE *zip_file, file_sorted_t *file, FILE *ozip, BYTE *odir);
@ -694,7 +690,7 @@ int count_files(dir_tree_t *trees)
// //
//========================================================================== //==========================================================================
int __cdecl sort_cmp(const void *a, const void *b) int sort_cmp(const void *a, const void *b)
{ {
const file_sorted_t *sort1 = (const file_sorted_t *)a; const file_sorted_t *sort1 = (const file_sorted_t *)a;
const file_sorted_t *sort2 = (const file_sorted_t *)b; const file_sorted_t *sort2 = (const file_sorted_t *)b;
@ -1569,7 +1565,7 @@ int copy_zip_file(FILE *zip, file_entry_t *file, FILE *ozip, CentralDirectoryEnt
// //
//========================================================================== //==========================================================================
int __cdecl main (int argc, char **argv) int main (int argc, char **argv)
{ {
dir_tree_t *tree, *trees; dir_tree_t *tree, *trees;
file_entry_t *file; file_entry_t *file;