2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00

Undefined functions because of missing std:: or header. (#295)

* [bcc32 Error] QPDF.cc(375): E2268 Call to undefined function 'atof'
  Full parser context
    QPDF.cc(358): parsing: void QPDF::parse(const char *)

* [bcc32 Error] QPDFTokenizer.cc(183): E2268 Call to undefined function 'strtol'
  Full parser context
    QPDFTokenizer.cc(163): parsing: void QPDFTokenizer::resolveLiteral()

* [bcc32 Error] pdf-split-pages.cc(52): E2268 Call to undefined function 'exit'
  Full parser context
    pdf-split-pages.cc(50): parsing: void usage()

* PR #295: Including "cstdlib" should be replaced with "stdlib.h" to be more consistent. At the same time I changed the order of the surrounding includes to reflect alphabetical order, because at some files this already have been the case.
This commit is contained in:
Thorsten Schöning 2019-03-12 15:05:29 +01:00 committed by Jay Berkenbilt
parent 2efec4ce7b
commit 2c704b99a1
5 changed files with 8 additions and 6 deletions

View File

@ -8,9 +8,10 @@
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QUtil.hh>
#include <string>
#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <string>
static char const* whoami = 0;
static bool static_id = false;

View File

@ -400,7 +400,6 @@ cso
csoe
css
cstdio
cstdlib
cstr
cstring
ctest

View File

@ -2,10 +2,11 @@
#include <qpdf/QUtil.hh>
#include <qpdf/QTC.hh>
#include <setjmp.h>
#include <string>
#include <stdexcept>
#include <cstdlib>
#include <stdlib.h>
#include <string>
#if BITS_IN_JSAMPLE != 8
# error "qpdf does not support libjpeg built with BITS_IN_JSAMPLE != 8"

View File

@ -4,6 +4,7 @@
#include <vector>
#include <map>
#include <algorithm>
#include <stdlib.h>
#include <string.h>
#include <memory.h>

View File

@ -10,8 +10,8 @@
#include <qpdf/QPDFObjectHandle.hh>
#include <stdexcept>
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
static bool is_delimiter(char ch)
{