From 967aeecf5bf05b607251b232f65191ffee7d49c8 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 31 Jan 2010 11:33:26 +0100 Subject: [PATCH] Removed "inline" directive from C modules (doesn't work in VC). --- core_pe/modules/block.c | 6 +++--- qt/pe/modules/block/block.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core_pe/modules/block.c b/core_pe/modules/block.c index e4165480..858e82cd 100644 --- a/core_pe/modules/block.c +++ b/core_pe/modules/block.c @@ -15,13 +15,13 @@ static PyObject *NoBlocksError; /* avgdiff/maxdiff has been called with 2 block lists of different size. */ static PyObject *DifferentBlockCountError; -static inline int +static int max(int a, int b) { return b > a ? b : a; } -static inline int +static int min(int a, int b) { return b < a ? b : a; @@ -100,7 +100,7 @@ getblock(PyObject *image) /* Returns the difference between the first block and the second. * It returns an absolute sum of the 3 differences (RGB). */ -static inline int +static int diff(PyObject *first, PyObject *second) { Py_ssize_t r1, g1, b1, r2, b2, g2; diff --git a/qt/pe/modules/block/block.c b/qt/pe/modules/block/block.c index 44cb97b1..7154af88 100644 --- a/qt/pe/modules/block/block.c +++ b/qt/pe/modules/block/block.c @@ -10,19 +10,19 @@ #define PY_SSIZE_T_CLEAN #include "Python.h" -static inline int +static int max(int a, int b) { return b > a ? b : a; } -static inline int +static int min(int a, int b) { return b < a ? b : a; } -static inline PyObject* +static PyObject* getblock(PyObject *image) { int width, height, pixel_count, red, green, blue, bytes_per_line;