Skip to content

Commit

Permalink
fix gcc2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Mar 16, 2024
1 parent d0e35c9 commit ac43236
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions source/BitmapStuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include <Debug.h>
#include <Node.h>

#define bzero(p,n) memset(p,0,n)

#if defined (DATATYPES)
# include "Datatypes.h"
#endif
Expand Down
1 change: 0 additions & 1 deletion source/CanvasTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <bsd_mem.h> // for bzero() since R4.1
#include "PosView.h"

// #define USE_THREAD_FOR_POSITION
Expand Down
4 changes: 1 addition & 3 deletions source/Layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include <string.h>
#include <stdlib.h>

#define bzero(p,n) memset(p,0,n)

Layer::Layer (BRect bounds, const char *name)
: BBitmap (bounds, B_BITMAP_ACCEPTS_VIEWS, B_RGBA32)
{
Expand Down Expand Up @@ -50,4 +48,4 @@ void Layer::ClearTo (bgra_pixel p)
bgra_pixel *d = (bgra_pixel *) Bits() - 1;
for (int32 i = 0; i < BitsLength()/4; i++)
*(++d) = p;
}
}
2 changes: 0 additions & 2 deletions source/add-ons/Quantize/Quantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <RadioButton.h>
#include <Box.h>

#define bzero(p,n) memset (p, 0, n)

int16 *gLut = 0;

#define FOREGROUND 0
Expand Down

0 comments on commit ac43236

Please sign in to comment.