c c++ windows

Which C/C++ header file defines a BYTE data type?

I’m porting a header with this declaration:

 struct tMaterialInfo {     
char strName[255]; // the texture name
char strFile [255]; // the texture
BYTE color [3]; // the color of the object

The header has the following includes:

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <fstream>
#include <vector>
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include<gl\glu.h>// Header File For The GLu32 Library
#include <gl\glaux.h>

Where does that BYTE come from?

I’m guessing it’s from Windows.

A byte (8 bits).

This type is declared in WinDef.h as follows:

typedef unsigned char BYTE;