Ticket #19741: poppler-24.05.0-C++20_adjustment-1.patch

File poppler-24.05.0-C++20_adjustment-1.patch, 606 bytes (added by martyj19, 5 weeks ago)

Conditionalize C++20 only code

  • goo/GooString.h

    diff -Naur poppler-24.05.0.orig/goo/GooString.h poppler-24.05.0/goo/GooString.h
    old new  
    237237    int cmp(const char *sA) const { return compare(sA); }
    238238    int cmpN(const char *sA, int n) const { return compare(0, n, sA); }
    239239
     240#if __cplusplus >= 202002L
    240241    // Return true if strings starts with prefix
    241242    using std::string::starts_with;
    242243
    243244    // Return true if string ends with suffix
    244245    using std::string::ends_with;
     246#endif
    245247};
    246248
    247249#endif