[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] 3 commits: [dsync] Drop GNU MIN/MAX definition



Title: GitLab

Joerg Jaspert pushed to branch master at Debian FTP Team / dak

Commits:

9 changed files:

Changes:

  • tools/dsync-0.0/cmdline/path-utils.cc
    ... ... @@ -12,6 +12,7 @@
    12 12
     #include <stdlib.h>
    
    13 13
     #include <sys/stat.h>
    
    14 14
     #include <dsync/error.h>
    
    15
    +#include <string.h>
    
    15 16
     
    
    16 17
     // SimplifyPath - Short function to remove relative path components	/*{{{*/
    
    17 18
     // ---------------------------------------------------------------------
    

  • tools/dsync-0.0/libdsync/contrib/fileutl.cc
    ... ... @@ -28,6 +28,7 @@
    28 28
     #include <signal.h>
    
    29 29
     #include <wait.h>
    
    30 30
     #include <errno.h>
    
    31
    +#include <string.h>
    
    31 32
     #include <iostream>
    
    32 33
     
    
    33 34
     using namespace std;
    

  • tools/dsync-0.0/libdsync/contrib/md5.h
    ... ... @@ -28,6 +28,7 @@
    28 28
     #endif 
    
    29 29
     
    
    30 30
     #include <string>
    
    31
    +#include <string.h>
    
    31 32
     using namespace std;
    
    32 33
     
    
    33 34
     class MD5Summation;
    

  • tools/dsync-0.0/libdsync/contrib/mmap.cc
    ... ... @@ -33,6 +33,7 @@
    33 33
     #include <sys/stat.h>
    
    34 34
     #include <unistd.h>
    
    35 35
     #include <fcntl.h>
    
    36
    +#include <string.h>
    
    36 37
        									/*}}}*/
    
    37 38
     
    
    38 39
     // MMap::MMap - Constructor						/*{{{*/
    

  • tools/dsync-0.0/libdsync/contrib/strutl.h
    ... ... @@ -24,6 +24,7 @@
    24 24
     #include <string>
    
    25 25
     #include <vector>
    
    26 26
     #include <time.h>
    
    27
    +#include <string.h>
    
    27 28
     
    
    28 29
     using namespace std;
    
    29 30
     
    

  • tools/dsync-0.0/libdsync/contrib/system.h
    ... ... @@ -24,12 +24,6 @@
    24 24
     #define MAX(x,y) _max(x,y)
    
    25 25
     #endif
    
    26 26
     
    
    27
    -// GNU C++ has a min/max operator <coolio>
    
    28
    -#if defined(__GNUG__)
    
    29
    -#define MIN(A,B) ((A) <? (B))
    
    30
    -#define MAX(A,B) ((A) >? (B))
    
    31
    -#endif
    
    32
    -
    
    33 27
     /* Templates tend to mess up existing code that uses min/max because of the
    
    34 28
        strict matching requirements */
    
    35 29
     #if !defined(MIN)
    

  • tools/dsync-0.0/libdsync/filefilter.cc
    ... ... @@ -23,6 +23,7 @@
    23 23
     #include <dsync/error.h>
    
    24 24
     
    
    25 25
     #include <fnmatch.h>
    
    26
    +#include <string.h>
    
    26 27
     using namespace std;
    
    27 28
     									/*}}}*/
    
    28 29
     
    

  • tools/dsync-0.0/libdsync/filelist.cc
    ... ... @@ -22,6 +22,7 @@
    22 22
     
    
    23 23
     #include <time.h>
    
    24 24
     #include <stdio.h>
    
    25
    +#include <string.h>
    
    25 26
     #include <iostream>
    
    26 27
     using namespace std;
    
    27 28
     									/*}}}*/
    

  • tools/dsync-0.0/libdsync/filelistdb.cc
    ... ... @@ -16,6 +16,7 @@
    16 16
     
    
    17 17
     #include <dsync/filelistdb.h>
    
    18 18
     #include <dsync/error.h>
    
    19
    +#include <string.h>
    
    19 20
     									/*}}}*/
    
    20 21
     
    
    21 22
     // FileListDB::dsFileListDB - Constructor				/*{{{*/
    


  • Reply to: