Ticket #641: algorithm.patch

File algorithm.patch, 622 bytes (added by greg, 10 years ago)
  • xapian-core/api/omdatabase.cc

    From 421a794cc76da4987b0549c895e18aeed4793129 Mon Sep 17 00:00:00 2001
    From: greg0t
    Date: Tue, 29 Apr 2014 15:16:25 -0700
    Subject: [PATCH] Added <algorithm> header since it's needed by std::max
    
    ---
     xapian-core/api/omdatabase.cc | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/xapian-core/api/omdatabase.cc b/xapian-core/api/omdatabase.cc
    index e8d2c55..cdb4dc1 100644
    a b  
    4444#include "noreturn.h"
    4545
    4646#include <cstdlib> // For abs().
    47 
     47#include <algorithm>
    4848#include <cstring>
    4949#include <vector>
    5050