WinRt (and Windows Phone) compilation fixes. std::Min and std::Max are in algorithm header.

This commit is contained in:
Alexxey593 2015-10-21 12:24:24 +03:00
parent 45aa03fdca
commit 4ad07d7cb3
10 changed files with 10 additions and 3 deletions

View File

@ -291,3 +291,6 @@ win32-g++{
!win32{
DEFINES += NO_ICONV
}
winrt {
DEFINES += NO_ICONV
}

View File

@ -35,7 +35,6 @@ private:
ArrayRef<char> rawBytes_;
ArrayRef< Ref<ResultPoint> > resultPoints_;
BarcodeFormat format_;
//NOTE: My
std::string charSet_;
public:

View File

@ -46,7 +46,6 @@ public:
ArrayRef<char> getRawBytes();
Ref<String> getText();
// NOTE: my
std::string charSet();
};

View File

@ -22,6 +22,7 @@
#include <zxing/NotFoundException.h>
#include <zxing/common/detector/MonochromeRectangleDetector.h>
#include <sstream>
#include <algorithm>
using std::vector;
using zxing::Ref;

View File

@ -27,6 +27,7 @@
#include <zxing/NotFoundException.h>
#include <sstream>
#include <cstdlib>
#include <algorithm>
using std::abs;
using zxing::Ref;

View File

@ -26,6 +26,7 @@
#include <math.h>
#include <string.h>
#include <sstream>
#include <algorithm>
using std::vector;
using std::string;

View File

@ -23,6 +23,7 @@
#include <zxing/ChecksumException.h>
#include <math.h>
#include <limits.h>
#include <algorithm>
using std::vector;
using zxing::Ref;

View File

@ -22,6 +22,7 @@
#include <zxing/NotFoundException.h>
#include <math.h>
#include <limits.h>
#include <algorithm>
using std::vector;
using zxing::Ref;

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <algorithm>
#include <limits>
#include <zxing/pdf417/detector/Detector.h>
#include <zxing/pdf417/detector/LinesSampler.h>

View File

@ -30,6 +30,7 @@
#include <zxing/common/detector/MathUtils.h>
#include <sstream>
#include <cstdlib>
#include <algorithm>
using std::ostringstream;
using std::abs;