[vte] Remove custom definition of howmany()
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Remove custom definition of howmany()
- Date: Wed, 19 Apr 2017 23:18:36 +0000 (UTC)
commit 8e670e32809911094d8fd1c127d80115dce7fcc7
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Apr 18 18:18:05 2017 -0700
Remove custom definition of howmany()
vtedraw.cc has been using it off of sys/param.h just fine.
src/vte.cc | 5 +----
src/vtedraw.cc | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 4a43fe6..9bbade8 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
+#include <sys/param.h> /* howmany() */
#include <errno.h>
#include <fcntl.h>
#include <math.h>
@@ -90,10 +91,6 @@ static inline double round(double x) {
typedef gunichar wint_t;
#endif
-#ifndef howmany
-#define howmany(x, y) (((x) + ((y) - 1)) / (y))
-#endif
-
#define WORD_CHAR_EXCEPTIONS_DEFAULT "-#%&+,./=?@\\_~\302\267"
#define I_(string) (g_intern_static_string(string))
diff --git a/src/vtedraw.cc b/src/vtedraw.cc
index a47efae..bf53a7d 100644
--- a/src/vtedraw.cc
+++ b/src/vtedraw.cc
@@ -21,7 +21,7 @@
#include <math.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/param.h>
+#include <sys/param.h> /* howmany() */
#include <glib.h>
#include <gtk/gtk.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]