Skip to content

Commit

Permalink
libmythfreemheg: replace nonstandard <malloc.h> with <cstdlib>
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmus-scott authored and linuxdude42 committed Jun 29, 2022
1 parent 2ecdd5d commit 30f8922
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mythtv/libs/libmythfreemheg/BaseClasses.h
Expand Up @@ -23,9 +23,8 @@
#define BASECLASSES_H

#include "config.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif

#include <cstdlib> // malloc etc.

#include <array>
#include <QString>
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythfreemheg/ParseBinary.cpp
Expand Up @@ -23,6 +23,7 @@
Parser for ASN1 binary notation. Does minimal syntax checking, assuming that this will already have
been done before the binary was produced. Creates a MHParseNode tree structure.
*/
#include <cstdlib> // malloc etc.

#include "Engine.h"
#include "ParseBinary.h"
Expand Down
3 changes: 3 additions & 0 deletions mythtv/libs/libmythfreemheg/ParseText.cpp
Expand Up @@ -25,6 +25,9 @@ This is very basic and is only there to enable some test programs to be run.
*/

#include "ParseText.h"

#include <cstdlib> // malloc etc.

#include "ParseNode.h"
#include "BaseClasses.h"
#include "ASN1Codes.h"
Expand Down
2 changes: 2 additions & 0 deletions mythtv/libs/libmythfreemheg/ParseText.h
Expand Up @@ -23,6 +23,8 @@
#if !defined(PARSETEXT_H)
#define PARSETEXT_H

#include <cstdlib> // malloc etc.

class MHGroup;

#include "ParseNode.h"
Expand Down

0 comments on commit 30f8922

Please sign in to comment.