[master] 62ff323 - Add missing include file stdlib.h for abs(int)

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 62ff323 - Add missing include file stdlib.h for abs(int) "Albrecht Schlosser" 16:17 Mar 21 top right image
 
commit 62ff323b706b0ea24f079462de987cf73981dcbe
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Mar 22 00:13:47 2021 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Mar 22 00:13:47 2021 +0100

    Add missing include file stdlib.h for abs(int)
    
    This file was included (in math.h or elsewhere) on Linux and latest
    macOS versions but maybe not in earlier macOS versions or with other
    configuration options.

 src/drivers/PostScript/Fl_PostScript_image.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git src/drivers/PostScript/Fl_PostScript_image.cxx src/drivers/PostScript/Fl_PostScript_image.cxx
index ae53aaa..e6b2d62 100644
--- src/drivers/PostScript/Fl_PostScript_image.cxx
+++ src/drivers/PostScript/Fl_PostScript_image.cxx
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <math.h>
 #include <string.h>
+#include <stdlib.h>  // abs(int)
 
 #include <FL/Fl_PostScript.H>
 #include "Fl_PostScript_Graphics_Driver.H"
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.