Fix compilation with ppremake

This commit is contained in:
rdb 2015-06-01 00:21:32 +02:00
parent 1b5552f204
commit cc62e731b7
14 changed files with 55 additions and 52 deletions

View File

@ -70,7 +70,7 @@ inline int BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READE
template <class _INCLASS1,class _IN_LISTEN,typename MESSAGE_READER_BUF, typename MESSAGE_READER_UPPASS> template <class _INCLASS1,class _IN_LISTEN,typename MESSAGE_READER_BUF, typename MESSAGE_READER_UPPASS>
inline void BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READER_UPPASS>::AddAConection(_INCLASS1 * newt) inline void BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READER_UPPASS>::AddAConection(_INCLASS1 * newt)
{ {
push_back(newt); this->push_back(newt);
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function name : BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READER_UPPASS>::BaseIncomingSet // Function name : BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READER_UPPASS>::BaseIncomingSet

View File

@ -22,7 +22,7 @@
cppSimpleType.h cppStructType.h cppTBDType.h \ cppSimpleType.h cppStructType.h cppTBDType.h \
cppTemplateParameterList.h cppTemplateScope.h cppToken.h \ cppTemplateParameterList.h cppTemplateScope.h cppToken.h \
cppType.h cppTypeDeclaration.h cppTypeParser.h \ cppType.h cppTypeDeclaration.h cppTypeParser.h \
cppTypeProxy.h cppTypedef.h cppUsing.h cppVisibility.h cppTypeProxy.h cppTypedefType.h cppUsing.h cppVisibility.h
#define INCLUDED_SOURCES \ #define INCLUDED_SOURCES \
cppArrayType.cxx cppClassTemplateParameter.cxx \ cppArrayType.cxx cppClassTemplateParameter.cxx \
@ -38,7 +38,7 @@
cppStructType.cxx cppTBDType.cxx \ cppStructType.cxx cppTBDType.cxx \
cppTemplateParameterList.cxx cppTemplateScope.cxx \ cppTemplateParameterList.cxx cppTemplateScope.cxx \
cppToken.cxx cppType.cxx cppTypeDeclaration.cxx \ cppToken.cxx cppType.cxx cppTypeDeclaration.cxx \
cppTypeParser.cxx cppTypeProxy.cxx cppTypedef.cxx \ cppTypeParser.cxx cppTypeProxy.cxx cppTypedefType.cxx \
cppUsing.cxx cppVisibility.cxx cppUsing.cxx cppVisibility.cxx
#end static_lib_target #end static_lib_target

View File

@ -10,6 +10,7 @@
addHash.I addHash.h \ addHash.I addHash.h \
atomicAdjust.h \ atomicAdjust.h \
atomicAdjustDummyImpl.h atomicAdjustDummyImpl.I \ atomicAdjustDummyImpl.h atomicAdjustDummyImpl.I \
atomicAdjustGccImpl.h atomicAdjustGccImpl.I \
atomicAdjustI386Impl.h atomicAdjustI386Impl.I \ atomicAdjustI386Impl.h atomicAdjustI386Impl.I \
atomicAdjustPosixImpl.h atomicAdjustPosixImpl.I \ atomicAdjustPosixImpl.h atomicAdjustPosixImpl.I \
atomicAdjustWin32Impl.h atomicAdjustWin32Impl.I \ atomicAdjustWin32Impl.h atomicAdjustWin32Impl.I \
@ -30,7 +31,7 @@
nearly_zero.h \ nearly_zero.h \
neverFreeMemory.h neverFreeMemory.I \ neverFreeMemory.h neverFreeMemory.I \
numeric_types.h \ numeric_types.h \
pstrtod.h \ pdtoa.h pstrtod.h \
register_type.I register_type.h \ register_type.I register_type.h \
selectThreadImpl.h \ selectThreadImpl.h \
stl_compares.I stl_compares.h \ stl_compares.I stl_compares.h \
@ -47,6 +48,7 @@
#define INCLUDED_SOURCES \ #define INCLUDED_SOURCES \
addHash.cxx \ addHash.cxx \
atomicAdjustDummyImpl.cxx \ atomicAdjustDummyImpl.cxx \
atomicAdjustGccImpl.cxx \
atomicAdjustI386Impl.cxx \ atomicAdjustI386Impl.cxx \
atomicAdjustPosixImpl.cxx \ atomicAdjustPosixImpl.cxx \
atomicAdjustWin32Impl.cxx \ atomicAdjustWin32Impl.cxx \
@ -59,6 +61,7 @@
mutexWin32Impl.cxx \ mutexWin32Impl.cxx \
mutexSpinlockImpl.cxx \ mutexSpinlockImpl.cxx \
neverFreeMemory.cxx \ neverFreeMemory.cxx \
pdtoa.cxx \
pstrtod.cxx \ pstrtod.cxx \
register_type.cxx \ register_type.cxx \
typeHandle.cxx \ typeHandle.cxx \
@ -69,6 +72,7 @@
addHash.I addHash.h \ addHash.I addHash.h \
atomicAdjust.h \ atomicAdjust.h \
atomicAdjustDummyImpl.h atomicAdjustDummyImpl.I \ atomicAdjustDummyImpl.h atomicAdjustDummyImpl.I \
atomicAdjustGccImpl.h atomicAdjustGccImpl.I \
atomicAdjustI386Impl.h atomicAdjustI386Impl.I \ atomicAdjustI386Impl.h atomicAdjustI386Impl.I \
atomicAdjustPosixImpl.h atomicAdjustPosixImpl.I \ atomicAdjustPosixImpl.h atomicAdjustPosixImpl.I \
atomicAdjustWin32Impl.h atomicAdjustWin32Impl.I \ atomicAdjustWin32Impl.h atomicAdjustWin32Impl.I \
@ -89,7 +93,7 @@
nearly_zero.h \ nearly_zero.h \
neverFreeMemory.h neverFreeMemory.I \ neverFreeMemory.h neverFreeMemory.I \
numeric_types.h \ numeric_types.h \
pstrtod.h \ pdtoa.h pstrtod.h \
register_type.I register_type.h \ register_type.I register_type.h \
selectThreadImpl.h \ selectThreadImpl.h \
stl_compares.I stl_compares.h \ stl_compares.I stl_compares.h \

View File

@ -44,7 +44,5 @@ typedef unsigned char uchar;
#define NULL ((void *)0) #define NULL ((void *)0)
#endif #endif
typedef int fd_set;
#endif #endif

View File

@ -23,7 +23,9 @@
encrypt_string.h \ encrypt_string.h \
error_utils.h \ error_utils.h \
export_dtool.h \ export_dtool.h \
filename_ext.h \
fileReference.h fileReference.I \ fileReference.h fileReference.I \
globPattern_ext.h \
hashGeneratorBase.I hashGeneratorBase.h \ hashGeneratorBase.I hashGeneratorBase.h \
hashVal.I hashVal.h \ hashVal.I hashVal.h \
indirectLess.I indirectLess.h \ indirectLess.I indirectLess.h \
@ -45,6 +47,7 @@
patchfile.I patchfile.h \ patchfile.I patchfile.h \
pointerTo.I pointerTo.h \ pointerTo.I pointerTo.h \
pointerToArray.I pointerToArray.h \ pointerToArray.I pointerToArray.h \
pointerToArray_ext.h \
pointerToArrayBase.I pointerToArrayBase.h \ pointerToArrayBase.I pointerToArrayBase.h \
pointerToBase.I pointerToBase.h \ pointerToBase.I pointerToBase.h \
pointerToVoid.I pointerToVoid.h \ pointerToVoid.I pointerToVoid.h \
@ -61,6 +64,7 @@
threadSafePointerTo.I threadSafePointerTo.h \ threadSafePointerTo.I threadSafePointerTo.h \
threadSafePointerToBase.I threadSafePointerToBase.h \ threadSafePointerToBase.I threadSafePointerToBase.h \
trueClock.I trueClock.h \ trueClock.I trueClock.h \
typeHandle_ext.h \
typedReferenceCount.I typedReferenceCount.h typedef.h \ typedReferenceCount.I typedReferenceCount.h typedef.h \
vector_uchar.h vector_double.h vector_float.h \ vector_uchar.h vector_double.h vector_float.h \
vector_stdfloat.h \ vector_stdfloat.h \

View File

@ -50,9 +50,11 @@
matrixLens.I matrixLens.h \ matrixLens.I matrixLens.h \
occlusionQueryContext.I occlusionQueryContext.h \ occlusionQueryContext.I occlusionQueryContext.h \
orthographicLens.I orthographicLens.h perspectiveLens.I \ orthographicLens.I orthographicLens.h perspectiveLens.I \
paramTexture.I paramTexture.h \
perspectiveLens.h \ perspectiveLens.h \
preparedGraphicsObjects.I preparedGraphicsObjects.h \ preparedGraphicsObjects.I preparedGraphicsObjects.h \
queryContext.I queryContext.h \ queryContext.I queryContext.h \
samplerState.I samplerState.h \
savedContext.I savedContext.h \ savedContext.I savedContext.h \
shader.I shader.h \ shader.I shader.h \
shaderContext.h shaderContext.I \ shaderContext.h shaderContext.I \
@ -61,6 +63,7 @@
sliderTable.I sliderTable.h \ sliderTable.I sliderTable.h \
texture.I texture.h \ texture.I texture.h \
textureCollection.I textureCollection.h \ textureCollection.I textureCollection.h \
textureCollection_ext.h \
textureContext.I textureContext.h \ textureContext.I textureContext.h \
texturePeeker.I texturePeeker.h \ texturePeeker.I texturePeeker.h \
texturePool.I texturePool.h \ texturePool.I texturePool.h \
@ -123,9 +126,11 @@
materialPool.cxx matrixLens.cxx \ materialPool.cxx matrixLens.cxx \
occlusionQueryContext.cxx \ occlusionQueryContext.cxx \
orthographicLens.cxx \ orthographicLens.cxx \
paramTexture.cxx \
perspectiveLens.cxx \ perspectiveLens.cxx \
preparedGraphicsObjects.cxx \ preparedGraphicsObjects.cxx \
queryContext.cxx \ queryContext.cxx \
samplerState.cxx \
savedContext.cxx \ savedContext.cxx \
shader.cxx \ shader.cxx \
shaderContext.cxx \ shaderContext.cxx \
@ -196,10 +201,12 @@
material.I material.h \ material.I material.h \
materialPool.I materialPool.h matrixLens.I matrixLens.h \ materialPool.I materialPool.h matrixLens.I matrixLens.h \
occlusionQueryContext.I occlusionQueryContext.h \ occlusionQueryContext.I occlusionQueryContext.h \
orthographicLens.I orthographicLens.h perspectiveLens.I \ orthographicLens.I orthographicLens.h \
perspectiveLens.h \ paramTexture.I paramTexture.h \
perspectiveLens.I perspectiveLens.h \
preparedGraphicsObjects.I preparedGraphicsObjects.h \ preparedGraphicsObjects.I preparedGraphicsObjects.h \
queryContext.I queryContext.h \ queryContext.I queryContext.h \
samplerState.I samplerState.h \
savedContext.I savedContext.h \ savedContext.I savedContext.h \
shader.I shader.h \ shader.I shader.h \
shaderContext.h shaderContext.I \ shaderContext.h shaderContext.I \

View File

@ -11,33 +11,19 @@
#define SOURCES \ #define SOURCES \
aa_luse.h \ aa_luse.h \
compose_matrix.h compose_matrix_src.I \ compose_matrix.h compose_matrix_src.I \
compose_matrix_src.cxx compose_matrix_src.h config_linmath.h \ config_linmath.h \
configVariableColor.h configVariableColor.I \ configVariableColor.h configVariableColor.I \
coordinateSystem.h dbl2fltnames.h dblnames.h \ coordinateSystem.h dbl2fltnames.h dblnames.h \
deg_2_rad.h deg_2_rad.I \ deg_2_rad.h deg_2_rad.I \
flt2dblnames.h fltnames.h intnames.h lcast_to.h lcast_to_src.h \ flt2dblnames.h fltnames.h intnames.h lcast_to.h \
lcast_to_src.I lmatrix.h lmatrix_ext.h lmatrix3_src.I \ lmatrix.h lmatrix_ext.h lorientation.h \
lmatrix3_src.cxx lmatrix3_src.h lmatrix4_src.I \ lpoint2.h lpoint3.h lpoint4.h \
lmatrix4_src.cxx lmatrix4_src.h lorientation.h \ lquaternion.h lrotation.h \
lorientation_src.I lorientation_src.cxx lorientation_src.h \
lpoint2.h lpoint2_src.I lpoint2_src.cxx lpoint2_src.h \
lpoint3.h lpoint3_src.I lpoint3_src.cxx lpoint3_src.h \
lpoint4.h lpoint4_src.I lpoint4_src.cxx lpoint4_src.h \
lquaternion.h lquaternion_src.I lquaternion_src.cxx \
lquaternion_src.h lrotation.h lrotation_src.I \
lrotation_src.cxx lrotation_src.h \
lsimpleMatrix.h lsimpleMatrix.I \ lsimpleMatrix.h lsimpleMatrix.I \
luse.I luse.N luse.h \ luse.I luse.N luse.h \
lvec2_ops.h lvec2_ops_src.I lvec2_ops_src.h lvec3_ops.h \ lvec2_ops.h lvec3_ops.h lvec4_ops.h \
lvec3_ops_src.I lvec3_ops_src.h lvec4_ops.h lvec4_ops_src.I \ lvecBase2.h lvecBase3.h lvecBase4.h \
lvec4_ops_src.h \ lvector2.h lvector3.h lvector4.h \
lvecBase2.h lvecBase2_src.I lvecBase2_src.cxx lvecBase2_src.h \
lvecBase3.h lvecBase3_src.I lvecBase3_src.cxx lvecBase3_src.h \
lvecBase4.h lvecBase4_src.I lvecBase4_src.cxx lvecBase4_src.h \
lvector2.h lvector2_src.I lvector2_src.cxx lvector2_src.h \
lvector3.h lvector3_src.I lvector3_src.cxx lvector3_src.h \
lvector4.h lvector4_src.I lvector4_src.cxx lvector4_src.h \
lvector4.h lvector4_src.I lvector4_src.cxx lvector4_src.h \
lvecBase2_ext.h lvecBase3_ext.h lvecBase4_ext.h \ lvecBase2_ext.h lvecBase3_ext.h lvecBase4_ext.h \
lpoint2_ext.h lpoint3_ext.h lpoint4_ext.h \ lpoint2_ext.h lpoint3_ext.h lpoint4_ext.h \
lvector2_ext.h lvector3_ext.h lvector4_ext.h \ lvector2_ext.h lvector3_ext.h lvector4_ext.h \

View File

@ -18,25 +18,23 @@
boundingSphere.I boundingSphere.h \ boundingSphere.I boundingSphere.h \
boundingVolume.I boundingVolume.h config_mathutil.h \ boundingVolume.I boundingVolume.h config_mathutil.h \
fftCompressor.h finiteBoundingVolume.h frustum.h \ fftCompressor.h finiteBoundingVolume.h frustum.h \
frustum_src.I frustum_src.h geometricBoundingVolume.I \ geometricBoundingVolume.I geometricBoundingVolume.h \
geometricBoundingVolume.h \
intersectionBoundingVolume.h intersectionBoundingVolume.I \ intersectionBoundingVolume.h intersectionBoundingVolume.I \
linmath_events.h \ linmath_events.h \
look_at.h look_at_src.I \ look_at.h \
look_at_src.cxx look_at_src.h \
linmath_events.h \ linmath_events.h \
mersenne.h \ mersenne.h \
omniBoundingVolume.I \ omniBoundingVolume.I \
omniBoundingVolume.h \ omniBoundingVolume.h \
parabola.h parabola_src.I parabola_src.cxx parabola_src.h \ parabola.h \
perlinNoise.h perlinNoise.I \ perlinNoise.h perlinNoise.I \
perlinNoise2.h perlinNoise2.I \ perlinNoise2.h perlinNoise2.I \
perlinNoise3.h perlinNoise3.I \ perlinNoise3.h perlinNoise3.I \
plane.h plane_src.I plane_src.cxx plane_src.h \ plane.h \
pta_LMatrix4.h pta_LMatrix3.h pta_LVecBase3.h \ pta_LMatrix4.h pta_LMatrix3.h pta_LVecBase3.h \
pta_LVecBase4.h pta_LVecBase2.h \ pta_LVecBase4.h pta_LVecBase2.h \
randomizer.h randomizer.I \ randomizer.h randomizer.I \
rotate_to.h rotate_to_src.cxx \ rotate_to.h \
stackedPerlinNoise2.h stackedPerlinNoise2.I \ stackedPerlinNoise2.h stackedPerlinNoise2.I \
stackedPerlinNoise3.h stackedPerlinNoise3.I \ stackedPerlinNoise3.h stackedPerlinNoise3.I \
triangulator.h triangulator.I \ triangulator.h triangulator.I \

View File

@ -92,6 +92,7 @@ private:
static CPT(RenderState) get_fake_view_frustum_cull_state(); static CPT(RenderState) get_fake_view_frustum_cull_state();
}; };
/* okcircular */
#include "cullTraverser.h" #include "cullTraverser.h"
#include "cullTraverserData.I" #include "cullTraverserData.I"

View File

@ -11,6 +11,8 @@
#define SOURCES \ #define SOURCES \
config_pnmimage.h \ config_pnmimage.h \
convert_srgb.I convert_srgb.h \
convert_srgb_sse2.cxx \
pfmFile.I pfmFile.h \ pfmFile.I pfmFile.h \
pfmFile_ext.cxx pfmFile_ext.h \ pfmFile_ext.cxx pfmFile_ext.h \
pnmbitio.h \ pnmbitio.h \
@ -24,6 +26,7 @@
#define INCLUDED_SOURCES \ #define INCLUDED_SOURCES \
config_pnmimage.cxx \ config_pnmimage.cxx \
convert_srgb.cxx \
pfmFile.cxx \ pfmFile.cxx \
pnm-image-filter.cxx \ pnm-image-filter.cxx \
pnmbitio.cxx \ pnmbitio.cxx \
@ -36,6 +39,7 @@
#define INSTALL_HEADERS \ #define INSTALL_HEADERS \
config_pnmimage.h \ config_pnmimage.h \
convert_srgb.I convert_srgb.h \
pfmFile.I pfmFile.h \ pfmFile.I pfmFile.h \
pfmFile_ext.cxx pfmFile_ext.h \ pfmFile_ext.cxx pfmFile_ext.h \
pnmBrush.h pnmBrush.I \ pnmBrush.h pnmBrush.I \

View File

@ -29,7 +29,7 @@
callbackObject.h callbackObject.I \ callbackObject.h callbackObject.I \
callbackObject_ext.h callbackObject_ext.I \ callbackObject_ext.h callbackObject_ext.I \
clockObject.h clockObject.I \ clockObject.h clockObject.I \
collideMask.h \ colorSpace.h collideMask.h \
copyOnWriteObject.h copyOnWriteObject.I \ copyOnWriteObject.h copyOnWriteObject.I \
copyOnWritePointer.h copyOnWritePointer.I \ copyOnWritePointer.h copyOnWritePointer.I \
compareTo.I compareTo.h \ compareTo.I compareTo.h \
@ -91,9 +91,10 @@
callbackData.cxx \ callbackData.cxx \
callbackObject.cxx \ callbackObject.cxx \
clockObject.cxx \ clockObject.cxx \
colorSpace.cxx \
config_util.cxx configurable.cxx \
copyOnWriteObject.cxx \ copyOnWriteObject.cxx \
copyOnWritePointer.cxx \ copyOnWritePointer.cxx \
config_util.cxx configurable.cxx \
cPointerCallbackObject.cxx \ cPointerCallbackObject.cxx \
datagramInputFile.cxx datagramOutputFile.cxx \ datagramInputFile.cxx datagramOutputFile.cxx \
doubleBitMask.cxx \ doubleBitMask.cxx \
@ -141,7 +142,7 @@
callbackObject.h callbackObject.I \ callbackObject.h callbackObject.I \
callbackObject_ext.h callbackObject_ext.I \ callbackObject_ext.h callbackObject_ext.I \
clockObject.h clockObject.I \ clockObject.h clockObject.I \
collideMask.h \ colorSpace.h collideMask.h \
copyOnWriteObject.h copyOnWriteObject.I \ copyOnWriteObject.h copyOnWriteObject.I \
copyOnWritePointer.h copyOnWritePointer.I \ copyOnWritePointer.h copyOnWritePointer.I \
compareTo.I compareTo.h \ compareTo.I compareTo.h \

View File

@ -31,7 +31,7 @@
mouseWatcher.cxx \ mouseWatcher.cxx \
mouseWatcherBase.cxx \ mouseWatcherBase.cxx \
mouseWatcherGroup.cxx \ mouseWatcherGroup.cxx \
mouseWatcherParameter.cxx mouseWatcherParameter.cxx \
mouseWatcherRegion.cxx \ mouseWatcherRegion.cxx \
trackball.cxx \ trackball.cxx \
transform2sg.cxx transform2sg.cxx

View File

@ -111,7 +111,7 @@ run() {
// First, get the average color of all the opaque pixels. // First, get the average color of all the opaque pixels.
int count = 0; int count = 0;
LRGBColord color(0.0, 0.0, 0.0); LRGBColor color(0.0, 0.0, 0.0);
int xi, yi; int xi, yi;
for (yi = 0; yi < _image.get_y_size(); ++yi) { for (yi = 0; yi < _image.get_y_size(); ++yi) {
for (xi = 0; xi < _image.get_x_size(); ++xi) { for (xi = 0; xi < _image.get_x_size(); ++xi) {
@ -127,7 +127,7 @@ run() {
} }
color /= (double)count; color /= (double)count;
nout << " average color of " << count << " opaque pixels is " << color << "\n"; nout << " average color of " << count << " opaque pixels is " << color << "\n";
// Now, apply that wherever there are transparent pixels. // Now, apply that wherever there are transparent pixels.
count = 0; count = 0;
for (yi = 0; yi < _image.get_y_size(); ++yi) { for (yi = 0; yi < _image.get_y_size(); ++yi) {
@ -143,7 +143,7 @@ run() {
exit(1); exit(1);
} }
nout << " applied to " << count << " transparent pixels.\n"; nout << " applied to " << count << " transparent pixels.\n";
write_image(_image); write_image(_image);
} }

View File

@ -477,19 +477,19 @@ process_image(PNMImage &image) {
if (_hls) { if (_hls) {
for (int yi = 0; yi < image.get_y_size(); ++yi) { for (int yi = 0; yi < image.get_y_size(); ++yi) {
for (int xi = 0; xi < image.get_x_size(); ++xi) { for (int xi = 0; xi < image.get_x_size(); ++xi) {
LRGBColord rgb = image.get_xel(xi, yi); LRGBColord rgb = LCAST(double, image.get_xel(xi, yi));
rgb = hls2rgb(_mat.xform_point(rgb2hls(rgb))); rgb = hls2rgb(_mat.xform_point(rgb2hls(rgb)));
image.set_xel(xi, yi, rgb); image.set_xel(xi, yi, LCAST(float, rgb));
} }
} }
} else { } else {
for (int yi = 0; yi < image.get_y_size(); ++yi) { for (int yi = 0; yi < image.get_y_size(); ++yi) {
for (int xi = 0; xi < image.get_x_size(); ++xi) { for (int xi = 0; xi < image.get_x_size(); ++xi) {
LRGBColord rgb = image.get_xel(xi, yi); LRGBColord rgb = LCAST(double, image.get_xel(xi, yi));
rgb = _mat.xform_point(rgb); rgb = _mat.xform_point(rgb);
image.set_xel(xi, yi, rgb); image.set_xel(xi, yi, LCAST(float, rgb));
} }
} }
} }
} }