Skip to content

Commit

Permalink
Fixed pragmas in headers so they work with Visual C++
Browse files Browse the repository at this point in the history
  • Loading branch information
caveofprogramming committed Dec 8, 2017
1 parent c960cb8 commit 75c4334
Show file tree
Hide file tree
Showing 118 changed files with 243 additions and 120 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
**/cmake_install.cmake
**/*.bmp
**/bin/**
**/bin/

Binary file modified ABitmapClass/bin/ABitmapClass
Binary file not shown.
6 changes: 4 additions & 2 deletions ABitmapClass/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
6 changes: 4 additions & 2 deletions ABitmapClass/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
int32_t width;
Expand All @@ -23,6 +23,8 @@ struct BitmapInfoHeader {
int32_t importantColors{0};
};

#pragma pack(pop)

}

#endif
Binary file modified AMandelbrotClass/bin/AMandelbrotClass
Binary file not shown.
6 changes: 4 additions & 2 deletions AMandelbrotClass/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
6 changes: 4 additions & 2 deletions AMandelbrotClass/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
int32_t width;
Expand All @@ -23,6 +23,8 @@ struct BitmapInfoHeader {
int32_t importantColors{0};
};

#pragma pack(pop)

}

#endif
Binary file modified AZoomClass/bin/AZoomClass
Binary file not shown.
6 changes: 4 additions & 2 deletions AZoomClass/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
6 changes: 4 additions & 2 deletions AZoomClass/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
int32_t width;
Expand All @@ -23,6 +23,8 @@ struct BitmapInfoHeader {
int32_t importantColors{0};
};

#pragma pack(pop)

}

#endif
Binary file modified AnRGBClass/bin/AnRGBClass
Binary file not shown.
6 changes: 4 additions & 2 deletions AnRGBClass/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
6 changes: 4 additions & 2 deletions AnRGBClass/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
int32_t width;
Expand All @@ -23,6 +23,8 @@ struct BitmapInfoHeader {
int32_t importantColors{0};
};

#pragma pack(pop)

}

#endif
Binary file modified ApplyingtheZoom/bin/ApplyingtheZoom
Binary file not shown.
5 changes: 3 additions & 2 deletions ApplyingtheZoom/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

using namespace std;

#pragma pack(push, 1)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
Expand All @@ -24,6 +24,7 @@ struct BitmapFileHeader {
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
7 changes: 4 additions & 3 deletions ApplyingtheZoom/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using namespace std;

#pragma pack(push, 1)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
int32_t width;
Expand All @@ -22,8 +22,9 @@ struct BitmapInfoHeader {
int32_t colors{0};
int32_t importantColors{0};
};
}

#pragma pack(pop)

}

#endif
Binary file modified Bind/bin/Bind
Binary file not shown.
Binary file modified BitmapFileHeaders/bin/BitmapFileHeaders
Binary file not shown.
6 changes: 4 additions & 2 deletions BitmapFileHeaders/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
Binary file modified BitmapHeaderValues/bin/BitmapHeaderValues
Binary file not shown.
6 changes: 4 additions & 2 deletions BitmapHeaderValues/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
6 changes: 4 additions & 2 deletions BitmapHeaderValues/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
int32_t width;
Expand All @@ -23,6 +23,8 @@ struct BitmapInfoHeader {
int32_t importantColors{0};
};

#pragma pack(pop)

}

#endif
Binary file modified BitmapInfoHeaders/bin/BitmapInfoHeaders
Binary file not shown.
8 changes: 7 additions & 1 deletion BitmapInfoHeaders/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

using namespace std;

#pragma pack(2)
namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
Expand All @@ -21,4 +23,8 @@ struct BitmapInfoHeader {
int32_t importantColors{0};
};

#pragma pack(pop)

}

#endif
Binary file modified BitmapMemory/bin/BitmapMemory
Binary file not shown.
6 changes: 4 additions & 2 deletions BitmapMemory/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
6 changes: 4 additions & 2 deletions BitmapMemory/src/BitmapInfoHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapInfoHeader {
int32_t headerSize{40};
int32_t width;
Expand All @@ -23,6 +23,8 @@ struct BitmapInfoHeader {
int32_t importantColors{0};
};

#pragma pack(pop)

}

#endif
Binary file modified CalculatingRangeTotals/bin/CalculatingRangeTotals
Binary file not shown.
6 changes: 4 additions & 2 deletions CalculatingRangeTotals/src/BitmapFileHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@

using namespace std;

#pragma pack(2)

namespace caveofprogramming {

#pragma pack(push, 2)

struct BitmapFileHeader {
char header[2] { 'B', 'M' };
int32_t fileSize;
int32_t reserved { 0 };
int32_t dataOffset;
};

#pragma pack(pop)

}

#endif /* BITMAPFILEHEADER_H_ */
Loading

0 comments on commit 75c4334

Please sign in to comment.